as.num {haploR} | R Documentation |
Converts vector of strings to numeric vector
Description
Converts vector of strings to numeric vector
Usage
as.num(x, na.strings = "NA")
Arguments
x |
Input vector of strings. |
na.strings |
A string which represents |
Value
A numeric vector
Examples
library(haploR)
as.num(c("1", "2", "X"), na.strings="X")
[Package haploR version 4.0.7 Index]