MatrixClass {Matrix} | R Documentation |
The Matrix (Super-) Class of a Class
Description
Return the (maybe super-)class
of class cl
from
package Matrix, returning character(0)
if there is none.
Usage
MatrixClass(cl, cld = getClassDef(cl), ...Matrix = TRUE,
dropVirtual = TRUE, ...)
Arguments
cl |
string, class name |
cld |
its class definition |
...Matrix |
|
dropVirtual |
|
... |
further arguments are passed to
|
Value
a character
string
Author(s)
Martin Maechler, 24 Mar 2009
See Also
Matrix
, the mother of all Matrix classes.
Examples
mkA <- setClass("A", contains="dgCMatrix")
(A <- mkA())
stopifnot(identical(
MatrixClass("A"),
"dgCMatrix"))
[Package Matrix version 1.7-1 Index]