Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pivot_table] add sort_item param option #795

Merged
merged 1 commit into from
Sep 13, 2023
Merged

[pivot_table] add sort_item param option #795

merged 1 commit into from
Sep 13, 2023

Conversation

JanMarvin
Copy link
Owner

Forgot to push this

library(openxlsx2)

wb <- wb_workbook() %>% wb_add_worksheet() %>% wb_add_data(x = mtcars)

df <- wb_data(wb, sheet = 1)

wb <- wb %>%
  wb_add_pivot_table(df, dims = "A3",
                     filter = "am", rows = "cyl", cols = "gear", data = "disp",
                     params = list(sort_item = list(gear = c(3, 2, 1)))
  )

@JanMarvin JanMarvin merged commit 50d5ca6 into main Sep 13, 2023
9 checks passed
@JanMarvin JanMarvin deleted the gh_issue_794 branch September 13, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant