View source: R/is-wholenumber.r
is_wholenumber | R Documentation |
This function tests whether all entries in a vector are integers (up to rounding error)
is_wholenumber(x, tol = .Machine$double.eps^0.5)
x |
A numerical vector |
Returns TRUE if all entries of x are whole numbers; FALSE otherwise
is_wholenumber(c(1,2,4.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.