| S7_class | R Documentation |
S7_class() returns a class specification for any R object, in a form
that can be passed to method() or used in any S7 dispatch context.
For S7 objects, the S7 class.
For S3 objects, a new_S3_class() wrapping class(x).
For S4 objects, the S4 class.
For base types, the matching class_* (e.g. class_integer).
For missing arguments, returns class_missing.
S7_class(object)
object |
Any R object. |
A class specification.
Foo := new_class()
S7_class(Foo())
# Also works on non-S7 objects
S7_class(1L)
S7_class("x")
S7_class(mean)
S7_class(factor("a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.