Description Usage Arguments Value See Also Examples
Checks if all data can be converted to numeric and forces any "" to be NA
1 | make.numeric(x)
|
x |
vector of data |
numeric vector or vector of class passed in
1 2 3 4 5 6 7 8 | x <- c("1", "2", "50.5")
make.numeric(x)
x[4] <- NA
make.numeric(x)
x[4] <- ""
make.numeric(x)
fac = factor(x)
make.numeric(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.