toNum: toNum

View source: R/toNum.R

toNumR 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")

sigbertklinke/mmstat4 documentation built on Sept. 13, 2024, 4:46 p.m.