SPNum | R Documentation |
Function to transform factor to numeric. Returns input argument as transformed to numeric.
SPNum(x)
x |
A numeric, character or factor variable that can be transformed to numeric. |
Instead of writing, for example:
as.numeric(as.character(x))
one can write
SPNum(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.