read.matrix.csr.Rd
reads and writes a file in sparse data format.
read.matrix.csr(file, fac = TRUE, ncol = NULL) write.matrix.csr(x, file = "out.dat", y = NULL, fac = TRUE)
x | An object of class |
---|---|
y | A vector (either numeric or a factor) |
file | The filename. |
fac | If |
ncol | Number of columns, detected automatically. Can be used to add empty columns (possibly not stored in the sparse format). |
If the data file includes no y variable, read.matrix.csr
returns an object of class
matrix.csr
, else a list with components:
object of class matrix.csr
vector of numeric values or factor levels, depending on fac
.
matrix.csr