Create Sparse Vectors

sparse_double()

Create sparse double vector

sparse_integer()

Create sparse integer vector

sparse_character()

Create sparse character vector

sparse_logical()

Create sparse logical vector

Convertion functions

coerce_to_sparse_data_frame()

Coerce sparse matrix to data frame with sparse columns

coerce_to_sparse_matrix()

Coerce sparse data frame to sparse matrix

coerce_to_sparse_tibble()

Coerce sparse matrix to tibble with sparse columns

as_sparse_double() as_sparse_integer() as_sparse_character() as_sparse_logical()

Coerce numeric vector to sparse double

Helper Functions

sparse_mean()

Calculate mean from sparse vectors

sparse_var()

Calculate variance from sparse vectors

sparse_sd()

Calculate standard diviation from sparse vectors

sparse_median()

Calculate median from sparse vectors

sparse_sqrt()

Calculate sqrt of sparse vectors

sparse_replace_na()

Replace NAs with specified values in sparse vectors

sparse_is_na()

Detect Pressence of Missing Values

sparse_which_na()

Which indices are Missing Values

sparse_lag()

Compute lagged values for sparse vectors

sparse_dummy()

Generate sparse dummy variables

sparsity()

Calculate sparsity of data frames, matrices, and sparse matrices

Utility Functions

is_sparse_vector() is_sparse_numeric() is_sparse_double() is_sparse_integer() is_sparse_character() is_sparse_logical()

Sparse vector type checkers

sparse_division_scalar() sparse_multiplication_scalar() sparse_addition_scalar() sparse_subtraction_scalar()

Scalar arithmatic with sparse vectors

sparse_multiplication()

Vector arithmatic with sparse vectors

sparse_positions() sparse_values() sparse_default()

Information extraction from sparse vectors

has_sparse_elements()

Check for sparse elements

sparsevctrs_options

sparsevctrs options