Description Usage Arguments Details Value Functions Examples
Functions to check for numerous different conditions
1 2 3 4 5 | is_zero(x, strict = F)
is_natural(x)
is_decimal(x)
|
x |
A number/vector to pass to a boolean check |
strict |
Whether a value is equal to the actual value, or also equal to natural coercion value |
A list of is_* checks to be passed to other functions.
A boolean, TRUE/FALSE
is_natural
: Check whether a number is a positive integer
is_decimal
: Check to see if a number is a decimal, both positive and negative
1 2 3 4 5 6 7 8 9 10 11 12 | is_zero(0, strict=T)
[1] TRUE
is_natural(4)
[1] TRUE
is_decimal(-8.17)
[1] TRUE
is_zero(FALSE, strict=T)
[1] FALSE
is_natural(4.4)
[1] FALSE
is_decimal(-8)
[1] FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.