type_of | R Documentation |
typeof()
Numerics that are equivalent to integers (e.g x == floor(x)
) are
classified as integers, and builtin and special functions are reported as
closures.
type_of(object)
object |
the object to check the type of |
character(1L) the type of the object
type_of(1.0001) # numeric
type_of(1.0) # integer (`typeof` returns numeric)
type_of(1) # integer (`typeof` returns numeric)
type_of(sum) # closure (`typeof` returns builtin)
type_of(`$`) # closure (`typeof` returns special)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.