add_ID {imputeREE} | R Documentation |
Add_ID
Description
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.
Usage
add_ID(dat, ID = "rowid")
Arguments
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 |
Value
a data frame
[Package imputeREE version 0.0.5 Index]