numeric_classify: numeric_classify

Description Usage Arguments Value

View source: R/classify.R

Description

numeric_classify

Usage

1
numeric_classify(var_name, data, rule)

Arguments

var_name

the current varaible under test #!.

data

data.frame whose rows are to be categorised according to a provided set of rules.

rule

a character vector of length one that specifies the rule to test. The rule can either indicate a value must be present ("1") or absent ("0") or test the entered value using one of the set of comparison functions ("==", ">=", "<=", ">", "<"). If a comparison function is used any NA value in the data is assumed to have failed the test. If an empty string is entered for the rule, any value is assumed correct.

Value

logical vector indicating which elements of the data match the rule.


oizin/labellr documentation built on Aug. 12, 2019, 11:08 a.m.