R/coerce.R
coerce.Rd
asInteger: convert x to an integer and throw an error if x is not a numeric.
asInteger
x
integer
numeric
asInteger(x)
input argument.
Johannes Rainer
## Convert numeric to integer asInteger(3.4) #> [1] 3 asInteger(3) #> [1] 3