is_: Functions for boolean checks

Description Usage Arguments Details Value Functions Examples

Description

Functions to check for numerous different conditions

Usage

1
2
3
4
5
is_zero(x, strict = F)

is_natural(x)

is_decimal(x)

Arguments

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

Details

A list of is_* checks to be passed to other functions.

Value

A boolean, TRUE/FALSE

Functions

Examples

 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

andrewjameshaynes/helpeR documentation built on May 28, 2019, 2:44 p.m.