replyr_add_ids: Add unique ids to rows. Note: re-arranges rows in many...

Description Usage Arguments Examples

View source: R/addIds.R

Description

Add unique ids to rows. Note: re-arranges rows in many cases.

Usage

1
replyr_add_ids(df, idColName, env = parent.frame(), local_short_cut = TRUE)

Arguments

df

data.frame object to work with

idColName

name of column to add

env

environment to evaluate in (not used).

local_short_cut

logical, if TRUE use base R on local data.

Examples

1
replyr_add_ids(data.frame(x=c('a','b')), 'id', local_short_cut = FALSE)

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.