add_ID: Add_ID

View source: R/Add_ID.R

add_IDR 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 tibble::rowid_to_column() function

Value

a data frame


imputeREE documentation built on July 9, 2023, 7:35 p.m.