rowid: rowid

View source: R/rowid.R

rowidR Documentation

rowid

Description

Extension of dplyr::row_number(). This generates 001 if there are more than 100 observations.

Usage

rowid(prefix = "id", suffix = "")

Arguments

prefix

Character. Prefix of the generated id. Default is "id".

suffix

Character. Suffix of the generated id. Default is "".

Examples

tibble::tibble(x = 1:1000) |>
 dplyr::mutate(id = rowid())

MarcellGranat/granatlib documentation built on July 9, 2023, 6:08 a.m.