powered by
Add unique ids to rows. Note: re-arranges rows in many cases.
replyr_add_ids(df, idColName, env = parent.frame(), local_short_cut = TRUE)
data.frame object to work with
name of column to add
environment to evaluate in (not used).
logical, if TRUE use base R on local data.
# NOT RUN { replyr_add_ids(data.frame(x=c('a','b')), 'id', local_short_cut = FALSE) # }
Run the code above in your browser using DataLab