View source: R/Class-hier-fn.R
subClasses | R Documentation |
Retugn all subclasses of a given S4 class; either only the direct sub
classes are also those “further away” (distance > 1
).
subClasses(Cl, directOnly = TRUE, complete = TRUE, ...)
Cl |
a class representation or a class name ( |
directOnly |
logical indicating if you direct subclasses
are desired (or also the ones with distance |
complete |
logical,.. as in.... |
... |
........ |
a character
vector of class names.
Martin Maechler
superClasses
; Classes
in
general.
subClasses("graph") # -> the direct ones
subClasses("graph", directOnly = FALSE) # the same: has only direct subclasses
if(require("Matrix")) {
print( subClasses("sparseMatrix") )
print( subClasses("sparseMatrix", directOnly = FALSE) )# much more
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.