Skip to content

enable functions such as cols_label() and cols_align() for gt_grp objects #2005

Description

@shannonhaughton

Prework

Proposal

Currently functions such as cols_label() and cols_align have a stop_if_not_gt_tbl(data = .data), and wont work with a gt_grp. A workaround is to map over each table and apply the function to the individual gt_tbls. Propose a function which does this looping for us.

Reprex

`
gt_tbl <- gt::exibble |>
gt()

gt_grp <- gt_group(gt_tbl, gt_tbl) |>
cols_align(
align = "center"
)

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions