typeof {base} | R Documentation |
typeof
determines the (R internal)
type or storage mode of any object
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"
, and others that
are unlikely to be seen at user level ("symbol"
,
"pairlist"
, "environment"
, "promise"
,
"language"
, "char"
, "..."
, "any"
,
"expression"
, "externalptr"
, "bytecode"
and
"weakref"
).
typeof(2) mode(2)