group_id: Assign a unique group ID.

Description Usage Arguments Value

View source: R/assessment.R

Description

Assign a unique group ID.

Usage

1
group_id(.data, .keep, .numeric = FALSE, .sep = "_", .collapse = "_")

Arguments

.data

a data frame

.keep

a vector or list of vectors of column names in .data to concatenate.

.numeric

a logical value indicating if the function should returned a concatenation of the fields supplied (FALSE) or a numeric ID (TRUE) for each group in the supplied data.

.sep

the field seperator character.

Value

a vector representing a unique ID for each group of data.


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.