mat_add_row_num: Add row number

mat_add_row_numR Documentation

Add row number

Description

Add row number

Usage

mat_add_row_num(df, ..., col_name = "n_row")

Arguments

df

data

col_name

Name of the new col, defaults to n_row

...

group by variables

Examples

df <- data.frame(group = rep(letters[1:2], each=3), values= 1:6)
mat_add_row_num(df)
mat_add_row_num(df, group)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.