Function needed to create a row_grp_structure object, which is a building block
of row_grp_plan()
See also
row_grp_plan()
for more details on how to group row group
structures, element_block()
for more details on how to specify spacing
between each group.
Examples
## single grouping variable example
row_grp_structure(group_val = c("A","C"), element_block(post_space = "---"))
#> $group_val
#> [1] "A" "C"
#>
#> $block_to_apply
#> List of 2
#> $ post_space: chr "---"
#> $ fill : logi TRUE
#> - attr(*, "class")= chr [1:2] "element_block" "element"
#>
#> attr(,"class")
#> [1] "row_grp_structure" "frmt_table"
## example with multiple grouping variables
row_grp_structure(group_val = list(grp1 = "A", grp2 = "b"), element_block(post_space = " "))
#> $group_val
#> $group_val$grp1
#> [1] "A"
#>
#> $group_val$grp2
#> [1] "b"
#>
#>
#> $block_to_apply
#> List of 2
#> $ post_space: chr " "
#> $ fill : logi TRUE
#> - attr(*, "class")= chr [1:2] "element_block" "element"
#>
#> attr(,"class")
#> [1] "row_grp_structure" "frmt_table"