haploR-as.num: Converts vector of strings to numeric vector

as.numR 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 NA. Default: "NA"

Value

A numeric vector

Examples

library(haploR)
as.num(c("1", "2", "X"), na.strings="X")

izhbannikov/haploR documentation built on Oct. 15, 2023, 10:01 p.m.