Skip to contents

Convenience function combining row and column slicing.

Usage

st_slice(path, rows = NULL, cols = NULL, threads = 0L)

Arguments

path

Path to a .spz file.

rows

Optional integer vector of row indices (1-indexed).

cols

Optional 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("data.spz", rows = 1:100, cols = 1:10)
dim(mat)
} # }