typeof
The Type of an Object

Description

Returns the type or storage mode of any object

Usage

typeof(x)

Arguments

x any object.
Value
returns a character string. Commonly encountered values are These values are identical to the value returned by storage.mode.
More esoteric values include:
See Also
storage.mode, class.
Examples
typeof(TRUE)   # "logical"
typeof(100L)   # "integer"
typeof(100)    # "double"
typeof(100+2i) # "complex"
typeof("abc")  # "character"
typeof(as.raw(100)) # "raw"
typeof(list()) # "list"
typeof(NULL)   # "NULL"
typeof(function(x) x) # "closure"
typeof(.GlobalEnv) # "environment"
Package base version 6.0.0-69
Package Index