get_by | R Documentation |
Set or return by layer binding
get_by(layer)
set_by(layer, by)
layer |
A |
by |
A string, a variable name, or a list of variable names supplied
using |
For get_by
, the by
binding of the supplied layer. For
set_by
the modified layer environment.
# Load in pipe
library(magrittr)
iris$Species2 <- iris$Species
lay <- tplyr_table(iris, Species) %>%
group_count(Species) %>%
set_by(vars(Species2, Sepal.Width))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.