Add or replace a rule on a sample frame
add_rule.RdAppends a typed rule, or replaces the rule with the same name (upsert). The
payload arguments depend on type:
filter,checkcolumn,op,values(structured) orexpr(a predicate string).opinin,not_in,==,!=,>,>=,<,<=,between,is_true,is_false.subsetsubset– a vector of entity ids to keep (captured).labelmap(an id-named vector) orfrom(a data frame) withkeysandlabelcolumn names;labelalso names the derived column.selectvars,scope,tables,drop(resolved via field_concordance).dedupgroup,partial,amended,timestampcolumn overrides fordeduplicate().refreshfn– a function taking and returning a data frame.viewrows,cols,value,fun– a crosstab/tapply summary.functionvalue/code(a string) orfn(a function).