Set or return treat_var binding
Value
For treat_var
, the treatment variable binding of the layer
object. For set_treat_var
, the modified layer environment.
Examples
# Load in pipe
library(magrittr)
iris$Species2 <- iris$Species
lay <- tplyr_table(iris, Species) %>%
group_count(Species) %>%
set_target_var(Species2)