Package: sparsevctrs 0.2.0.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.2.0.9000.tar.gz
sparsevctrs_0.2.0.9000.zip(r-4.5)sparsevctrs_0.2.0.9000.zip(r-4.4)sparsevctrs_0.2.0.9000.zip(r-4.3)
sparsevctrs_0.2.0.9000.tgz(r-4.5-x86_64)sparsevctrs_0.2.0.9000.tgz(r-4.5-arm64)sparsevctrs_0.2.0.9000.tgz(r-4.4-x86_64)sparsevctrs_0.2.0.9000.tgz(r-4.4-arm64)sparsevctrs_0.2.0.9000.tgz(r-4.3-x86_64)sparsevctrs_0.2.0.9000.tgz(r-4.3-arm64)
sparsevctrs_0.2.0.9000.tar.gz(r-4.5-noble)sparsevctrs_0.2.0.9000.tar.gz(r-4.4-noble)
sparsevctrs_0.2.0.9000.tgz(r-4.4-emscripten)sparsevctrs_0.2.0.9000.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:

11.02 score 14 stars 212 packages 21 scripts 70k downloads 31 exports 5 dependencies

Last updated 15 hours agofrom:ab29c66df0. Checks:11 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 14 2025
R-4.5-win-x86_64OKFeb 14 2025
R-4.5-mac-x86_64OKFeb 14 2025
R-4.5-mac-aarch64OKFeb 14 2025
R-4.5-linux-x86_64OKFeb 14 2025
R-4.4-win-x86_64OKFeb 14 2025
R-4.4-mac-x86_64OKFeb 14 2025
R-4.4-mac-aarch64OKFeb 14 2025
R-4.3-win-x86_64OKFeb 14 2025
R-4.3-mac-x86_64OKFeb 14 2025
R-4.3-mac-aarch64OKFeb 14 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_logicalsparse_meansparse_mediansparse_multiplication_scalarsparse_positionssparse_sdsparse_subtraction_scalarsparse_valuessparse_varsparsity

Dependencies:cligluelifecyclerlangvctrs

Design behind sparsevctrs

Rendered fromdesign.Rmdusingknitr::rmarkdownon Feb 14 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
Create sparse logical vectorsparse_logical
Calculate mean from sparse vectorssparse_mean
Calculate median from sparse vectorssparse_median
Calculate standard diviation from sparse vectorssparse_sd
Calculate variance from sparse vectorssparse_var
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