powered by
Return the (maybe super-)class of class cl from package Matrix, returning character(0) if there is none.
class
cl
character(0)
MatrixClass(cl, cld = getClassDef(cl), ...Matrix = TRUE, dropVirtual = TRUE, ...)
a character string
character
string, class name
its class definition
logical indicating if the result must be of pattern "[dlniz]..Matrix" where the first letter "[dlniz]" denotes the content kind.
logical
"[dlniz]..Matrix"
logical indicating if virtual classes are included or not.
further arguments are passed to .selectSuperClasses().
.selectSuperClasses()
Martin Maechler, 24 Mar 2009
Matrix, the mother of all Matrix classes.
Matrix
mkA <- setClass("A", contains="dgCMatrix") (A <- mkA()) stopifnot(identical( MatrixClass("A"), "dgCMatrix"))
Run the code above in your browser using DataLab