Skip to contents

The tarchetypes::tar_group_by() function adds a column named "tar_group". This function ungroups and removes the special column.

Usage

tar_ungroup(.df, tar_group_colname = "tar_group", ungroup = TRUE)

Arguments

.df

The data frame to be ungrouped.

tar_group_colname

The name of the grouping column. Default is "tar_group".

ungroup

A boolean that tells whether to ungroup .df. Default is TRUE.

Value

A modified version of .df.