View source: R/convertToNumeric.R
convertToNumeric | R Documentation |
Function to convert a character vector to numeric values.
convertToNumeric(x)
x |
|
Values with commas are converted after stripping out commas.
Values with percent signs are converted after removing percent signs and
converting to fractions (i.e., dividing by 100). Otherwise, this works as as.numeric(v)
would.
a vector of the same length as x
converted to numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.