Description Usage Arguments Value Author(s)
View source: R/InternalSimple_functions.R
This function takes a factor vector and changes it to a numeric. This is primarily to avoid instances where a csv file has been opened without column classes being specified, which can result in numeric values being accidently read as factors, which in turn when treated with as.numeric() will accidently be given integer values in the order of the factor levels. By treating the values as characters first it avoids this potential error.
1 | chr2nu(X)
|
x |
is a vector to be converted to a numeric vector |
This function returns a numeric vector
Ardern Hulme-Beaman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.