object_class | R Documentation |
Find class of an object or an ancestor of the object. In contrast to class
which returns a class object and all its ancestors, this function returns
either the class of the object itself, or the class of one of its ancestors.
object_class(object, ancestor = 0) get_object_class(object, ancestor = 0, ...) object_classes(..., objects = list(...))
object |
|
ancestor |
|
... |
|
objects |
|
object_classes
is a stripped-down wrapper to get the class of multiple
objects
library(R6) class_a <- R6Class("class_a") class_b <- R6Class("class_b", inherit = class_a) class(class_b$new()) object_class(class_b$new()) object_class(class_b$new(), 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.