add_all_units_as_group: this add all units as a separate group, for grouped data

View source: R/add_all_units_as_group.R

add_all_units_as_groupR Documentation

this add all units as a separate group, for grouped data

Description

this add all units as a separate group, for grouped data

Usage

add_all_units_as_group(df, group_var, new_group_id = "")

Arguments

df

Data frame

group_var

the name of the var that defines groups

new_group_id

new id for the group that is composed of all units


hhilbig/haschaR documentation built on Dec. 26, 2024, 5:40 a.m.