Description Usage Arguments Examples
Filter a pivot table
1 | pivot_focus(.data, ...)
|
.data |
A data.frame or a pivot_prep object |
... |
Variables or calculation to group by |
1 2 3 4 5 6 7 8 9 | retail_orders %>%
pivot_rows(status) %>%
pivot_columns(country) %>%
pivot_values(total_sales = sum(sales)) %>%
pivot_focus(
country %in% c("Japan", "USA", "UK"),
status == "Shipped",
total_sales > 200000
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.