| add_list_column | R Documentation |
Make a column into a list column
add_list_column(
data,
...,
type = c("1", "a", "A", "I", "i"),
sep = ". ",
merge = FALSE
)
data |
data.frame or tibble |
... |
Column name or tidyselect function. Select columns. Default is first column |
type |
list type. Can be "1" (numeric), "a" (lowercase alphabetical), or "ABC" (uppercase alphabetical), "i" (lowercase Roman numerals), "I" (uppercase Roman numerals) |
sep |
separator |
merge |
If |
data.frame
d <- data.frame(x = letters[1:5], y = letters[2:6])
# default is first column
add_list_column(d) |>
apa_flextable()
# select any column
add_list_column(d, y) |>
apa_flextable()
add_list_column(d, type = "a", sep = ") ") |>
apa_flextable()
add_list_column(d, merge = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.