powered by
Set or return treat_var binding
get_target_var(layer)set_target_var(layer, target_var)
set_target_var(layer, target_var)
For treat_var, the treatment variable binding of the layer object. For set_treat_var, the modified layer environment.
treat_var
set_treat_var
A tplyr_layer object
tplyr_layer
A symbol to perform the analysis on
# Load in pipe library(magrittr) iris$Species2 <- iris$Species lay <- tplyr_table(iris, Species) %>% group_count(Species) %>% set_target_var(Species2)
Run the code above in your browser using DataLab