Description Usage Arguments Value Examples
Apply several functions to the same column
1 2 3 |
.var |
A variable specified as in |
... |
list of functions or formulas using |
.tbl, .env |
data frame to get columns from and caller environment. Most of the time, you don't need to set these |
.name |
|
rumba()
returns a spliced list of formulas suitable for the ...
of a
choreography()
based dance, e.g. tango()
, samba()
, jive()
zumba()
returns a single formula that packs the results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | g <- group_by(iris, Species)
# ---- tango()
g %>%
tango(rumba(Sepal.Length, mean = mean, median = median))
# select the first column, control the result names
# with the glue() model
g %>%
tango(rumba(1, mean = mean, median = median, .name = "{var}_{fun}"))
g %>%
tango(Sepal.Width = zumba(Sepal.Width, mean = mean, median = median))
# ---- jive()
g %>%
jive(
rumba(Sepal.Width, five = fivenum, quantile = quantile)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.