CSCMatrix-class {FeatureHashing}R Documentation

CSCMatrix

Description

The structure of CSCMatrix is the same as the structure of dgCMatrix. However, the CSCMatrix has weaker constraints compared to dgCMatrix.

CSCMatrix onlysupports limited operators. The users can convert it to dgCMatrix for compatibility of existed algorithms.

Details

The CSCMatrix violates two constraints used in dgCMatrix:

The result of matrix-vector multiplication should be the same.

Methods

See Also

dgCMatrix-class

Examples

# construct a CSCMatrix
m <- hashed.model.matrix(~ ., CO2, 8)
# convert it to dgCMatrix
m2 <- as(m, "dgCMatrix")

[Package FeatureHashing version 0.9.2 Index]