toNum: toNum

Description Usage Arguments Value Examples

View source: R/toNum.R

Description

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

Usage

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

Arguments

x

input object

min

numeric: minimal value

max

numeric: maximal value

Value

a single integer value

Examples

1
2
3
toNum(3.0)
toNum("3.0")
toNum("test")

sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.