Transform a "spam" Format to Triplets
triplet.RdReturns a list containing the indices and elements of a spam object.
Value
A list with elements
- indices
a by two matrix containing the indices if
tri=FALSE.- i,j
vectors containing the row and column indices if
tri=TRUE.- values
a vector containing the matrix elements.
See also
spam.creation for the inverse operation and
foreign for other transformations.