add_group_identifier: Function to give unique identifiers to groups within data

View source: R/add_group_identifier.R

add_group_identifierR Documentation

Function to give unique identifiers to groups within data

Description

Function to give unique identifiers to groups within data

Usage

add_group_identifier(df, type = "numbers", as_factor = F)

Arguments

df

Input data frame or tibble

type

Type of identifier. Either 'numbers' or 'letters'

as_factor

Should the new column be a factor?

Value

Tibble

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.