Set or return by layer binding
Arguments
- layer
A
tplyr_layer
object- by
A string, a variable name, or a list of variable names supplied using
dplyr::vars
.
Examples
# Load in pipe
library(magrittr)
iris$Species2 <- iris$Species
lay <- tplyr_table(iris, Species) %>%
group_count(Species) %>%
set_by(vars(Species2, Sepal.Width))