tar_map2_group: Append the 'tar_group' variable to a 'tar_map2()' target.

View source: R/tar_map2_raw.R

tar_map2_groupR Documentation

Append the tar_group variable to a tar_map2() target.

Description

Append the tar_group variable to a tar_map2() target.

Usage

tar_map2_group(data, group)

Arguments

data

Data frame to be returned from the target.

group

Function on the data to return the tar_group column. If group is NULL, then no tar_group column is attached.

Details

For internal use only. Users should not invoke this function directly.

Value

A data frame with a tar_group column attached (if group is not NULL).


tarchetypes documentation built on Oct. 4, 2023, 5:08 p.m.