Vectorizes function whisker.render
.
NOTE: Because whisker does not support variable names
inlcuding dots, a dot in column names is replaced by an underscore.
Therefore, you must use an underscore in the template text for
varibales including dots.
template %$$% data
template | template |
---|---|
data | data frame where column names correspond to variables names in template |
rendered template
#> [1] "a = 1 and b = 23" "a = 2 and b = 22" "a = 3 and b = 21"