classGraph (version 0.7-5)

superClasses: List of Super Classes of a Given S4 Class

Description

Give a list of all super classes of a specific S4 class (definition).

Usage

superClasses(x)

Value

a list of length-1 character strings, typically with a

"package" attribute each.

Arguments

x

a class representation as returned by getClassDef.

Author

Robert Gentleman and Martin Maechler

See Also

subClasses, ...

Examples

Run this code
superClasses(getClassDef("graphNEL"))

if(require("Matrix")) {
  scL <- superClasses(getClassDef("dgeMatrix"))
  str(scL) # a list of two
} # 'Matrix'

Run the code above in your browser using DataLab