is.whole | R Documentation |
check whether a vector contains numbers with decimal places
is.whole(x)
x |
the number or vector to check #' |
true or false
is.whole(3.12) # this will return FALSE
is.whole(2) # this will return TRUE
x <- c(1, 2, 3, 4, 5.5, 6.03, 23.07)
is.whole(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.