Skip to contents

Read a subset of columns from a .spz file without decompressing the entire matrix.

Usage

st_slice_cols(path, cols, threads = 0L)

Arguments

path

Path to a .spz file.

cols

Integer vector of column indices (1-indexed).

threads

Integer; number of threads (0 = all available). Default 0.

Value

A dgCMatrix sparse matrix.

Examples

if (FALSE) { # \dontrun{
mat <- st_slice_cols("data.spz", cols = 1:10)
dim(mat)
} # }