Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 R 中,如何获取 S4 超类的子类列表?
我找到了 showClass("mySuperClass",complete=FALSE) 但它只打印结果。我想将它存储在一个向量中以使用它。
发现类定义的类(类定义本身就是一个 S4 类!)
cls = getClass("MySuperClass") class(cls) class?classRepresentation
并且,稍微探索一下,到达
names(cls@subclasses)