simplify | R Documentation |
Coerce object to the simplest possible storage mode.
simplify(x)
x |
a list, data frame, matrix, or vector. |
Object of same dimensions as x
, using simplest possible storage modes.
factor -> character -> numeric -> integer
If user knows that x
is a factor coercible to numeric/integer, then
as.numeric(levels(x))[x]
is faster.
Numbers outside the two billion range are not coerced to integers:
c(-2147483647, 2147483647)
.
Faster than type.convert(as.character(x))
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.