Matrix (version 0.99-3)

dgTMatrix-class: Sparse matrices in triplet form

Description

The "dgTMatrix" class is the class of sparse matrices stored as (possibly redundant) triplets.

Arguments

Objects from the Class

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

See Also

dgCMatrix-class

Examples

Run this code
m <- Matrix(1:28, nrow = 4)
##FIXME: m[c()...] <- 0
(mT <- as(m, "dgTMatrix"))

mT[1,]
mT[4, drop = FALSE]

Run the code above in your browser using DataCamp Workspace