add_ID {imputeREE} | R Documentation |
Add an unique ID per observation and checks that is not overwriting an existing column. If the column already exist, it will take no action. This is a wrapper of tibble::rowid_to_column() that checks that not columns is overwritten.
add_ID(dat, ID = "rowid")
dat |
a tibble or a dataframe |
ID |
Name of column to use for rownames. 'rowid' is used if none is specified.
er parameters passed onto the |
a data frame