Description Usage Arguments Examples
Drill into a hierarchy dimension
1 | pivot_drill(.data, ...)
|
.data |
A data.frame or a pivot_prep object |
... |
Variable or variables to drill by |
1 2 3 4 5 6 7 | retail_orders %>%
pivot_rows(order_date = dim_hierarchy(
year = as.integer(format(orderdate, "%Y")),
month = as.integer(format(orderdate, "%m"))
)) %>%
pivot_values(sum(sales)) %>%
pivot_drill(order_date)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.