# SCM Repository

[matrix] Diff of /pkg/man/sparseMatrix-class.Rd
 [matrix] / pkg / man / sparseMatrix-class.Rd

# Diff of /pkg/man/sparseMatrix-class.Rd

revision 1896, Fri Jun 15 18:20:26 2007 UTC revision 1898, Fri Jun 15 23:13:43 2007 UTC
# Line 23  Line 23
23  \alias{rbind2,numeric,sparseMatrix-method}  \alias{rbind2,numeric,sparseMatrix-method}
24  %  %
25  \alias{coerce,ANY,sparseMatrix-method}  \alias{coerce,ANY,sparseMatrix-method}
26  %\alias{coerce,factor,sparseMatrix-method}  \alias{coerce,factor,sparseMatrix-method}
27  \alias{coerce,sparseMatrix,generalMatrix-method}  \alias{coerce,sparseMatrix,generalMatrix-method}
28  \alias{coerce,sparseMatrix,symmetricMatrix-method}  \alias{coerce,sparseMatrix,symmetricMatrix-method}
29  \alias{coerce,sparseMatrix,triangularMatrix-method}  \alias{coerce,sparseMatrix,triangularMatrix-method}
# Line 80  Line 80
80        allows to \emph{reshape} a sparse matrix to a sparse matrix with        allows to \emph{reshape} a sparse matrix to a sparse matrix with
81        the same entries but different dimensions. \code{value} must be of        the same entries but different dimensions. \code{value} must be of
82        length two and fulfill \code{prod(value) == prod(dim(x))}.}        length two and fulfill \code{prod(value) == prod(dim(x))}.}
83        \item{coerce}{\code{signature(from "factor", to = "sparseMatrix")}:
84          Coercion of a factor to \code{"sparseMatrix"} produces the matrix
85          of indicator \bf{rows} stored as an object of class
86          \code{"dgCMatrix"}.  To obtain columns represent the interaction
87          of the factor and a numeric covariate, replace the \code{"x"} slot
88          of the result by the numeric covariate then take the transpose.}
89    }    }
91    for methods with separate help pages.    for methods with separate help pages.
# Line 98  Line 104
104  M <- Matrix(0, 10000, 100)  M <- Matrix(0, 10000, 100)
105  M[1,1] <- M[2,3] <- 3.14  M[1,1] <- M[2,3] <- 3.14
106  M  M
107    str(fact <- gl(5, 3, labels = LETTERS[1:5]))
108    as(fact, "sparseMatrix")  # indicator rows
109  \dontshow{% show() was slow in 0.9975-8 because of slow adjust="fancy"  \dontshow{% show() was slow in 0.9975-8 because of slow adjust="fancy"
110  op <- options(max.print = 25000, width = 80)  op <- options(max.print = 25000, width = 80)
111  sink(print(tempfile()))  sink(print(tempfile()))

Legend:
 Removed from v.1896 changed lines Added in v.1898