triplet.Rd
Returns a list containing the indices and elements of a spam
object.
triplet(x, tri=FALSE)
sparse matrix of class spam
or a matrix.
Boolean indicating whether to create individual row and column indices vectors.
A list with elements
a by two matrix containing the indices if
tri=FALSE
.
vectors containing the row and column indices if tri=TRUE
.
a vector containing the matrix elements.
The elements are row (column) first if x
is a spam
object (matrix).
spam.creation
for the inverse operation and
foreign
for other transformations.