Description Usage Arguments Value See Also Examples
typeof
determines the (R internal)
type or storage mode of any object
1 | typeof(x)
|
x |
any R object. |
A character string. The possible values are listed in the structure
TypeTable
in ‘src/main/util.c’. Current values are
the vector types "logical"
, "integer"
, "double"
,
"complex"
, "character"
, "raw"
and "list"
,
"NULL"
,
"closure"
(function), "special"
and "builtin"
(basic functions and operators), "environment"
, "S4"
(some S4 objects) and others that are unlikely to be seen at user
level ("symbol"
, "pairlist"
, "promise"
,
"language"
, "char"
, "..."
, "any"
,
"expression"
, "externalptr"
, "bytecode"
and
"weakref"
).
isS4
to determine if an object has an S4 class.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.