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.
Arguments
- data
The gt table group object
obj:<gt_group>// requiredThis is a
gt_groupcontainer object. It is typically generated through use ofgt_group()along with one or moregt_tblobjects, or, made by splitting a gt table withgt_split().- which
The tables to clone
vector<numeric|integer>// default:NULL(optional)A vector of index values denoting which gt tables should be cloned inside of the
gt_groupobject.- before, after
Table used as anchor
scalar<numeric|integer>// default:NULL(optional)A single index for either
beforeorafter, specifies where the clonedgt_tblobjects should be placed amongst the existing collection of gt tables. If nothing is provided for either argument, the incominggt_tblobjects will be appended.
See also
Other table group functions:
grp_add(),
grp_options(),
grp_pull(),
grp_replace(),
grp_rm(),
gt_group(),
gt_split()