powered by
This function checks, whether a vector contains numbers with decimal places. It returns TRUE or FALSE
is.decimal(x)
a number or vector to be checked
Joerg Schlarmann
is.whole
is.decimal(3) # this will return FALSE is.decimal(2.01) # this will return TRUE x <- c(1,2,3,4,5.5, 6.03, 23.07) is.decimal(x)
Run the code above in your browser using DataLab