gt_group()
can be used to create a container for multiple gt tables.
In some circumstances, you might want to replace a specific gt_tbl
object
(or multiple) with a different one. This can be done with grp_replace()
.
The important thing is that the number of gt tables provided must equal
the number of indices for tables present in the gt_group
object.
Arguments
- .data
The gt table group object
obj:<gt_group>
// requiredThis is a
gt_group
container object. It is typically generated through use ofgt_group()
along with one or moregt_tbl
objects, or, made by splitting a gt table withgt_split()
.- ...
One or more gt table objects
obj:<gt_tbl>
// required (or, use.list
)One or more gt table (
gt_tbl
) objects, typically generated via thegt()
function.- .list
Alternative to
...
<list of multiple expressions>
// (or, use...
)Allows for the use of a list as an input alternative to
...
.- .which
The tables to replace
vector<numeric|integer>
// default:NULL
(optional
)A vector of index values denoting which gt tables should be replaced inside of the
gt_group
object.