Description Usage Arguments Examples
A wrapper for dplyr::arrange that retains formatting information
1 | arrange_fmt(df, ...)
|
df |
a data frame created by tidyxl::xlsx_cells |
... |
select input. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
library(tidyverse)
annotated_df <-
locatr_example("newresconst.xlsx") %>%
xlsx_cells_fmt(sheets = "Table 1 - Permits") %>%
append_fmt(fmt_font_bold) %>%
filter_fmt(row < min(row[stringr::str_detect(character,"RSE")],na.rm = TRUE)) %>%
arrange_fmt(height) %>%
locate_data(data_type == "numeric" & col > 1) %>%
locate_groups(direction = "W",
.groupings = groupings(is.na(numeric)),
.hook_if = hook_if(any(data_type == "numeric"))) %>%
locate_groups(direction = "N", header_fill = "style")
annotated_df %>% plot_cells()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.