condformat icon indicating copy to clipboard operation
condformat copied to clipboard

.col pronoun

Open zeehio opened this issue 5 years ago • 0 comments

I want to create a rule that applies to several columns and make the expression dependant on the column where it is applied.

Proposed syntax:

    condformat(iris) %>%
      rule_fill_discrete(c(Sepal.Length, Sepal.Width), .col > 3)

Equivalent to:

    condformat(iris) %>%
      rule_fill_discrete(Sepal.Length, Sepal.Length > 3) %>%
      rule_fill_discrete(Sepal.Width, Sepal.Width > 3)

zeehio avatar Nov 11 '18 22:11 zeehio