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, ...)
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()
a character string
character
'>Matrix, the mother of all Matrix classes.
'>Matrix
# NOT RUN { mkA <- setClass("A", contains="dgCMatrix") (A <- mkA()) stopifnot(identical( MatrixClass("A"), "dgCMatrix")) # }
Run the code above in your browser using DataLab