get_target_var | R Documentation |
Set or return treat_var binding
get_target_var(layer)
set_target_var(layer, target_var)
layer |
A |
target_var |
A symbol to perform the analysis on |
For treat_var
, the treatment variable binding of the layer
object. For set_treat_var
, the modified layer environment.
# Load in pipe
library(magrittr)
iris$Species2 <- iris$Species
lay <- tplyr_table(iris, Species) %>%
group_count(Species) %>%
set_target_var(Species2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.