list_to_Rfilter: Rule string

Description Usage Arguments Value Examples

View source: R/list_to_Rfilter.R

Description

make rule string for dplyr::filter() taking from list

Usage

1
list_to_Rfilter(rules_list = list(rule1 = 1:3, rule2 = ">2"))

Arguments

rules_list:

Named list containing the values of the filter.

Value

A character containing the rule.

Examples

1
2
3
4
5
6
7
rules = list(
  country = c('BRA', 'GER', 'JPN'),
  grade = c('A', 'B', 'C'),
  age = c('>10', '<25')
  
)
list_to_Rfilter(rules)

leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.