numericAndInteger: coerce a value to a numeric or an integer

Description Usage Arguments Details Value

Description

coerce a value to a numeric or an integer

Usage

1
2
3
4
5

Arguments

x

an R vector value to be coerced

Details

asNumeric is the same as as.Numeric with suppressed warnings.
asInteger does not perform any rounding. A NA is returned in stead.
is.wholeNUmber returns TRUE is its argument can be converted to an integer without rounding

Value

the numeric / integer value or NA if x could not be converted


Pisca46/quantities documentation built on May 31, 2019, 11:41 p.m.