toNum {mmstat4}R Documentation

toNum

Description

Converts x to a numeric. If the conversion fails or the value is outside min and max then NA is returned

Usage

toNum(x, min = -Inf, max = +Inf)

Arguments

x

input object

min

numeric: minimal value

max

numeric: maximal value

Value

a single integer value

Examples

toNum(3.0)
toNum("3.0")
toNum("test")

[Package mmstat4 version 0.2.1 Index]