Package: sparsevctrs 0.3.5.9000

Emil Hvitfeldt

sparsevctrs: Sparse Vectors for Use in Data Frames

Provides sparse vectors powered by ALTREP (Alternative Representations for R Objects) that behave like regular vectors, and can thus be used in data frames. Also provides tools to convert between sparse matrices and data frames with sparse columns and functions to interact with sparse vectors.

Authors:Emil Hvitfeldt [aut, cre], Davis Vaughan [ctb], Posit Software, PBC [cph, fnd]

sparsevctrs_0.3.5.9000.tar.gz
sparsevctrs_0.3.5.9000.zip(r-4.7)sparsevctrs_0.3.5.9000.zip(r-4.6)sparsevctrs_0.3.5.9000.zip(r-4.5)
sparsevctrs_0.3.5.9000.tgz(r-4.6-x86_64)sparsevctrs_0.3.5.9000.tgz(r-4.6-arm64)sparsevctrs_0.3.5.9000.tgz(r-4.5-x86_64)sparsevctrs_0.3.5.9000.tgz(r-4.5-arm64)
sparsevctrs_0.3.5.9000.tar.gz(r-4.7-arm64)sparsevctrs_0.3.5.9000.tar.gz(r-4.7-x86_64)sparsevctrs_0.3.5.9000.tar.gz(r-4.6-arm64)sparsevctrs_0.3.5.9000.tar.gz(r-4.6-x86_64)
sparsevctrs_0.3.5.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sparsevctrs/json (API)
NEWS

# Install 'sparsevctrs' in R:
install.packages('sparsevctrs', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-lib/sparsevctrs/issues

Pkgdown/docs site:https://r-lib.github.io

On CRAN:

Conda:

12.05 score 26 stars 486 packages 49 scripts 151k downloads 37 exports 5 dependencies

Last updated from:21538a1d5e. Checks:10 OK, 3 NOTE. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK195
linux-devel-x86_64OK189
source / vignettesOK240
linux-release-arm64OK192
linux-release-x86_64OK192
macos-release-arm64OK130
macos-release-x86_64OK211
macos-oldrel-arm64NOTE95
macos-oldrel-x86_64NOTE342
windows-develOK117
windows-releaseOK104
windows-oldrelNOTE126
wasm-releaseOK116

Exports:as_sparse_characteras_sparse_doubleas_sparse_integeras_sparse_logicalcoerce_to_sparse_data_framecoerce_to_sparse_matrixcoerce_to_sparse_tibblehas_sparse_elementsis_sparse_characteris_sparse_doubleis_sparse_integeris_sparse_logicalis_sparse_numericis_sparse_vectorsparse_addition_scalarsparse_charactersparse_defaultsparse_division_scalarsparse_doublesparse_dummysparse_integersparse_is_nasparse_lagsparse_logicalsparse_meansparse_mediansparse_multiplicationsparse_multiplication_scalarsparse_positionssparse_replace_nasparse_sdsparse_sqrtsparse_subtraction_scalarsparse_valuessparse_varsparse_which_nasparsity

Dependencies:cligluelifecyclerlangvctrs

Design behind sparsevctrs

Rendered fromdesign.Rmdusingknitr::rmarkdownon Jun 23 2026.

Last update: 2025-05-25
Started: 2024-05-09

Readme and manuals

Help Manual

Help pageTopics
Coerce sparse matrix to data frame with sparse columnscoerce_to_sparse_data_frame
Coerce sparse data frame to sparse matrixcoerce_to_sparse_matrix
Coerce sparse matrix to tibble with sparse columnscoerce_to_sparse_tibble
Coerce numeric vector to sparse doubleas_sparse_character as_sparse_double as_sparse_integer as_sparse_logical coerce-vector
Information extraction from sparse vectorsextractors sparse_default sparse_positions sparse_values
Check for sparse elementshas_sparse_elements
Create sparse character vectorsparse_character
Create sparse double vectorsparse_double
Generate sparse dummy variablessparse_dummy
Create sparse integer vectorsparse_integer
Detect Pressence of Missing Valuessparse_is_na
Compute lagged values for sparse vectorssparse_lag
Create sparse logical vectorsparse_logical
Calculate mean from sparse vectorssparse_mean
Calculate median from sparse vectorssparse_median
Replace NAs with specified values in sparse vectorssparse_replace_na
Calculate standard diviation from sparse vectorssparse_sd
Calculate sqrt of sparse vectorssparse_sqrt
Calculate variance from sparse vectorssparse_var
Which indices are Missing Valuessparse_which_na
Vector arithmatic with sparse vectorssparse-arithmatic sparse_multiplication
Scalar arithmatic with sparse vectorssparse-arithmatic-scalar sparse_addition_scalar sparse_division_scalar sparse_multiplication_scalar sparse_subtraction_scalar
sparsevctrs optionssparsevctrs_options
Calculate sparsity of data frames, matrices, and sparse matricessparsity
Sparse vector type checkersis_sparse_character is_sparse_double is_sparse_integer is_sparse_logical is_sparse_numeric is_sparse_vector type-predicates