asNumeric | R Documentation |
Converts character to numeric with NA substitution.
asNumeric(x, missing.code = c("NA"))
x |
A vector of character representations of numbers. |
missing.code |
A string in |
A numeric vector with NA in place of missing.code
.
isMissing
, isNumeric
as.numeric(c("3.45","1000","1e6","<BLOQ","NA","<0.100"))
asNumeric(c("3.45","1000","1e6","<BLOQ","NA","<0.100"))
asNumeric(c("3.45","1000","1e6","<BLOQ","NA","<0.100"), missing.code = c("<BLOQ","NA","<0.100"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.