View source: R/table_bindings.R
pop_treat_var | R Documentation |
The treatment variable used in the target data may be different than the
variable within the population dataset. set_pop_treat_var
allows you
to change this.
pop_treat_var(table)
set_pop_treat_var(table, pop_treat_var)
table |
A |
pop_treat_var |
Variable containing treatment group assignments within the |
For tplyr_pop_treat_var
the pop_treat_var binding of the
tplyr_table
object. For set_tplyr_pop_treat_var
the modified
object.
tab <- tplyr_table(iris, Species)
pop_data(tab) <- mtcars
set_pop_treat_var(tab, mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.