as.integer.or.dbl | R Documentation |
This function checks if any value in a vector is above 2e+09, and if so runs
round(as.double())
on it. If not it uses as.integer()
instead. This is to
get around the 32-bit limitation in R that integers cannot be larger than
around 2e+09, in which case as.integer
would return an NA
.
## S3 method for class 'or.dbl'
as.integer(x)
x |
vector to be coerced to integers or doubles |
a vector of integers or doubles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.