Description Usage Arguments Value Examples
add a column to a dataframe consisting of the current rownames
1 | col2rownames(df, colname, removecol = TRUE)
|
df |
dataframe |
colname |
character vector specifying id of column with new rownames |
removecol |
boolean specifying wheter to remove the column used to rename rownames |
dataframe with column contents as rownames
1 | col2rownames(dataframe, "columnid", FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.