| add_format | R Documentation |
indentme, newrows, newpage, and roworder to
the results dataframeAdd the formatting variables of indentme, newrows, newpage, and roworder to
the results dataframe
add_format(df, tableby = NULL, groupby = NULL, .keep = FALSE)
df |
(required) dataframe of results and must contain the |
tableby |
(optional) character vector containing table by variables. |
groupby |
(optional) character vector containing group by variables. |
.keep |
(optional) should |
dataframe with the formatting variables indentme, newrows, newpage, and roworder added.
df <- tibble::tibble(
row_type =
c(
"TABLE_BY_HEADER", "HEADER", "BY_HEADER1", "N", "VALUE",
"COUNTS", "UNIVAR", "NESTED", "NESTED"
),
nested_level = c(NA, NA, NA, NA, NA, NA, NA, 1, 2),
group_level = c(0, 0, 0, 0, 0, 0, 0, 0, 0),
label = c(NA, NA, NA, NA, NA, "N", NA, NA, NA),
by = c(NA, NA, NA, NA, NA, NA, NA, NA, NA),
tableby = c(NA, NA, NA, NA, NA, NA, NA, NA, NA),
anbr = c(1:9)
)
add_format(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.