Learn R Programming

Matrix (version 0.97-4)

dgCMatrix-class: Compressed, sparse, column-oriented numeric matrices

Description

The dgCMatrix class is a class of sparse numeric matrices in the compressed, sparse, column-oriented format. In this implementation the non-zero elements in the columns are sorted into increasing row order.

Arguments

Objects from the Class

Objects can be created by calls of the form new("dgCMatrix", ...).

See Also

dsCMatrix-class, dtCMatrix-class

Examples

Run this code
m <- Matrix(1:12, nrow = 3)
(mC <- as(m, "dgCMatrix"))
str(mC)
mC[,1]

Run the code above in your browser using DataLab