Package: sparsevctrs 0.2.0.9006

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.2.0.9006.tar.gz
sparsevctrs_0.2.0.9006.zip(r-4.5)sparsevctrs_0.2.0.9006.zip(r-4.4)sparsevctrs_0.2.0.9006.zip(r-4.3)
sparsevctrs_0.2.0.9006.tgz(r-4.5-x86_64)sparsevctrs_0.2.0.9006.tgz(r-4.5-arm64)sparsevctrs_0.2.0.9006.tgz(r-4.4-x86_64)sparsevctrs_0.2.0.9006.tgz(r-4.4-arm64)sparsevctrs_0.2.0.9006.tgz(r-4.3-x86_64)sparsevctrs_0.2.0.9006.tgz(r-4.3-arm64)
sparsevctrs_0.2.0.9006.tar.gz(r-4.5-noble)sparsevctrs_0.2.0.9006.tar.gz(r-4.4-noble)
sparsevctrs_0.2.0.9006.tgz(r-4.4-emscripten)sparsevctrs_0.2.0.9006.tgz(r-4.3-emscripten)
sparsevctrs.pdf |sparsevctrs.html
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 site:https://r-lib.github.io

On CRAN:

Conda-Forge:

11.84 score 17 stars 437 packages 21 scripts 156k downloads 37 exports 5 dependencies

Last updated 1 days agofrom:d2e2c68bab. Checks:11 OK, 1 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 05 2025
R-4.5-win-x86_64NOTEMar 05 2025
R-4.5-mac-x86_64OKMar 05 2025
R-4.5-mac-aarch64OKMar 05 2025
R-4.5-linux-x86_64OKMar 05 2025
R-4.4-win-x86_64OKMar 05 2025
R-4.4-mac-x86_64OKMar 05 2025
R-4.4-mac-aarch64OKMar 05 2025
R-4.4-linux-x86_64OKMar 05 2025
R-4.3-win-x86_64OKMar 05 2025
R-4.3-mac-x86_64OKMar 05 2025
R-4.3-mac-aarch64OKMar 05 2025

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 Mar 05 2025.

Last update: 2024-05-13
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