grp_replace {gt} | R Documentation |
Replace one or more gt tables in a gt_group
container object
Description
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.
Usage
grp_replace(.data, ..., .list = list2(...), .which)
Arguments
.data |
The gt table group object
This is a |
... |
One or more gt table objects
One or more gt table ( |
.list |
Alternative to
Allows for the use of a list as an input alternative to |
.which |
The tables to replace
A vector of index values denoting which gt tables should be replaced
inside of the |
Value
An object of class gt_group
.
Function ID
14-6
Function Introduced
v0.9.0
(Mar 31, 2023)
See Also
Other table group functions:
grp_add()
,
grp_clone()
,
grp_options()
,
grp_pull()
,
grp_rm()
,
gt_group()
,
gt_split()