Learn R Programming

docorator (version 0.5.2)

apply_to_gt_group: apply a gt function to a gt_group

Description

apply a gt function to a gt_group

Usage

apply_to_gt_group(x, func, args, call = rlang::caller_env())

Arguments

x

gt group object

func

string with function name

args

named list of function arguments with gt_tbl or gt_group as first arg

call

caller env

Examples

Run this code
gt_tbl <- gt::exibble|> gt::gt()
gt_group <- gt::gt_group(gt_tbl, gt_tbl)

func <- gt::tab_options
arg_list_group <- list(page.header.use_tbl_headings = c(TRUE))

apply_to_gt_group(gt_group, func,arg_list_group)

Run the code above in your browser using DataLab