# use of page_struct
page_plan(
page_structure(
group_val = "grp1",
label_val = "lbl1"
)
)
# use of # rows
page_plan(
max_rows = 5
)
# use of transform with a formula
page_plan(
page_structure(group_val = ".default"),
transform = ~ stringr::str_replace(.x, "grp", "Group")
)
# use of transform with a function
transformation_function <- function(x) {
stringr::str_replace(x, "grp", "Group")
}
page_plan(
page_structure(group_val = ".default"),
transform = transformation_function
)
Run the code above in your browser using DataLab