col2rownames: add a column to a dataframe consisting of the current...

Description Usage Arguments Value Examples

Description

add a column to a dataframe consisting of the current rownames

Usage

1
col2rownames(df, colname, removecol = TRUE)

Arguments

df

dataframe

colname

character vector specifying id of column with new rownames

removecol

boolean specifying wheter to remove the column used to rename rownames

Value

dataframe with column contents as rownames

Examples

1
col2rownames(dataframe, "columnid", FALSE)

hbc/CHBUtils documentation built on May 17, 2019, 3:07 p.m.