Description Usage Arguments Examples
Applies the ballet()
and makes sure each result have the same vctrs::vec_size()
as the number of elements in each group.
1 2 3 4 5 6 7 |
.tbl |
A data frame, most likely a grouped data frame |
..., .env |
formulas for each column to create, and parent environment, see |
.name |
Name of the packed column made by The four functions play a separate role around the idea of
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | g <- group_by(iris, Species)
# Creates a `dance_grouped_df` tibble,
# which is the same as `g` but guarantees that the data for each column
# is contiguous within groups
chacha(g)
# returns a tibble of two columns
g %>%
salsa(
Sepal = ~Sepal.Length * Sepal.Width,
Petal = ~Petal.Length * Petal.Width
)
# returns a dance_grouped_df with the two
# additional columns `Sepal` and `Petal`
g %>%
samba(
Sepal = ~Sepal.Length * Sepal.Width,
Petal = ~Petal.Length * Petal.Width
)
# returns a dance_grouped_df with the one
# additional data frame column
g %>%
madison(
Sepal = ~Sepal.Length * Sepal.Width,
Petal = ~Petal.Length * Petal.Width
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.