powered by
Return or set the treatment variable binding
treat_var(table)set_treat_var(table, treat_var)
set_treat_var(table, treat_var)
For tplyr_treat_var the treat_var binding of the tplyr_table
tplyr_treat_var
tplyr_table
object. For set_tplyr_treat_var the modified object.
set_tplyr_treat_var
A tplyr_table object to set or return treatment variable the table is split by.
Variable containing treatment group assignments. Supply unquoted.
tab <- tplyr_table(mtcars, cyl) set_treat_var(tab, gear)
Run the code above in your browser using DataLab