format_condition {nuggets} | R Documentation |
Format a vector of predicates into a string with a condition
Description
Function takes a character vector of predicates and returns a formatted condition. The format of the condition is a string with predicates separated by commas and enclosed in curly braces.
Usage
format_condition(condition)
Arguments
condition |
a character vector of predicates to be formatted |
Value
a character scalar with a formatted condition
Author(s)
Michal Burda
Examples
format_condition(NULL) # returns {}
format_condition(c("a", "b", "c")) # returns {a,b,c}
[Package nuggets version 1.4.0 Index]