coerceMode {admisc} | R Documentation |
This function verifies if an R vector is possibly numeric, and further if the numbers inside are whole numbers.
coerceMode(x)
x |
An atomic R vector |
An R vector of coerced mode.
Adrian Dusa
obj <- c("1.0", 2:5)
is.integer(coerceMode(obj))