Description Usage Arguments Details Value
coerce a value to a numeric or an integer
1 2 3 4 5 | is.wholeNumber(x)
asNumeric(x)
asInteger(x)
|
x |
an R vector value to be coerced |
asNumeric is the same as as.Numeric with suppressed warnings.
asInteger does not perform any rounding. A NA is returned in stead.
is.wholeNUmber returns TRUE is its argument can be converted to an integer without rounding
the numeric / integer value or NA if x could not be converted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.