Description Usage Arguments Details References Examples
Inspect types of R objects
1 2 3 | object_types(..., echo = FALSE)
check_language_object_types(..., echo = FALSE)
|
... |
valid R object(s). |
echo |
should objects be printed into the console? |
class
displays R's built-in S3 class.
typeof
type of an object.
mode
storage mode of an object.
storage.mode
used when calling functions written in another
language.
sexp.type
internal SEXPTYPE
reprentation, see
sexp.type
.
mode
and storage.mode
are mainly used for the types
that are compatible with S.
Substituted object names are stored in the attributes
. See Examples.
1 2 3 4 5 6 7 | object_types(1, 5L)
mmy::object_types(quote(for (i in seq(5L)) i))
types <- object_types(`$`, 1L, `[[<-`)
attributes(types)
quo <- quote(x <- 2)
check_language_object_types(quo, quo[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.