grp_clone {gt} | R Documentation |
Clone one or more gt tables in a gt_group
container object
Description
Should you have a gt_group
object, created through use of the gt_group()
function, you may in certain circumstances want to create replicas of
gt_tbl
objects in that collection. This can be done with the grp_clone()
function and the placement of the cloned gt tables can be controlled with
either the before
or after
arguments.
Usage
grp_clone(data, which = NULL, before = NULL, after = NULL)
Arguments
data |
The gt table group object
This is a |
which |
The tables to clone
A vector of index values denoting which gt tables should be cloned
inside of the |
before , after |
Table used as anchor
A single index for either |
Value
An object of class gt_group
.
Function ID
14-5
Function Introduced
v0.9.0
(Mar 31, 2023)
See Also
Other table group functions:
grp_add()
,
grp_options()
,
grp_pull()
,
grp_replace()
,
grp_rm()
,
gt_group()
,
gt_split()