toInt: toInt

Description Usage Arguments Value Examples

View source: R/toNum.R

Description

Converts x to an integer. If the conversion fails or the integer is outside min and max then NA_integer_ is returned

Usage

1
toInt(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
toInt(3.0)
toInt("3.0")
toInt("test")

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