Learn R Programming

nuggets (version 1.2.0)

format_condition: Format condition - convert a character vector to character scalar

Description

Function takes a character vector of predicates and returns a formatted condition.

Usage

format_condition(condition)

Value

a character scalar

Arguments

condition

a character vector

Author

Michal Burda

Examples

Run this code
format_condition(NULL)              # returns {}
format_condition(c("a", "b", "c"))  # returns {a,b,c}

Run the code above in your browser using DataLab