logical: Logical operators

Description Usage Arguments Details Value Examples

Description

Test an object x. See Details for an explanation of how each function operates.

Usage

1
2
3

Arguments

x

an object to check.

Details

is_char_numeric

TRUE if x can be converted into a numeric vector by as.numeric without coercing character elements without a commonly-understood numeric representation.

is_formula

TRUE if x is a formula object.

Value

logical

Examples

1
2
3
4
5
is_char_numeric(c(1, 3, "3", NA))
is_char_numeric(c(1, 3, "3", NA, "A"))
 
is_formula("y ~ x")
is_formula(as.formula("y ~ x"))

sboysel/boysel documentation built on May 29, 2019, 3:24 p.m.