Learn R Programming

polmineR (version 0.7.0)

as.sparseMatrix: Type conversion - get sparseMatrix.

Description

Turn objects into the sparseMatrix as defined in the Matrix package.

Usage

as.sparseMatrix(x, ...)
"as.sparseMatrix"(x, ...)
"as.sparseMatrix"(x, ...)
"as.sparseMatrix"(x, col)

Arguments

x
object to convert
...
further parameters
col
column name to get values from (if x is a bundle)