rerowname | R Documentation |
Used to easily rename the rows of a dataframe.
rerowname(df, old='NA', new='unknown')
df |
A dataframe with rownames. |
old |
The row name to be replaced. |
new |
The replacment row name. |
A dataframe with one new rowname
df <- data.frame(a=c(1,2,3), b=c('x','y','z'), c=c(5,3,2))
rownames(df) <- c('p','q','NA')
rerowname(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.