View source: R/other-functions.R
| is.natural | R Documentation |
Check if value is a natural number
is.natural(x, tol = .Machine$double.eps^0.5)
x |
Numeric value to check |
tol |
Tolerance for floating point comparison |
Logical indicating if x is a natural number (positive integer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.