character2integer {hutilscpp}R Documentation

Character to numeric

Description

Character to numeric

Usage

character2integer(x, na.strings = NULL, allow.double = FALSE, option = 0L)

Arguments

x

A character vector.

na.strings

A set of strings that shall be coerced to NA_integer_

allow.double

logical(1) If TRUE, a double vector may be returned. If FALSE, an error will be emitted. If NA, numeric values outside integer range are coerced to NA_integer_, silently.

option

Control behaviour:

0

Strip commas.


[Package hutilscpp version 0.10.4 Index]