Description Usage Arguments Examples
Manipulate pivot tables
1 2 3 | pivot_rows(.data, ...)
pivot_columns(.data, ...)
|
.data |
A data.frame or a pivot_prep object |
... |
Variables or calculation to group by |
1 2 3 4 | retail_orders %>%
pivot_rows(status) %>%
pivot_columns(country) %>%
pivot_values(total_sales = sum(sales))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.