This function converts character and factor variables to numeric, or leaves the variable as is if it is already numeric. If the variable is some other type, the function will throw an error and, if the script is being sourced, stop the script from running further.
1 | destring(x)
|
x |
Input the variable to be converted. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.