Matrix (version 0.99-3)

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", ...) or often more easily via Matrix(*, sparse = TRUE).

See Also

dsCMatrix-class, dtCMatrix-class

Examples

Run this code
(m <- Matrix(c(0,0,2:0), 3,5))
str(m)
m[,1]

Run the code above in your browser using DataLab