| name_rows | R Documentation | 
Plyr functions ignore row names, so this function provides a way to preserve
them by converting them to an explicit column in the data frame.  After the
plyr operation, you can then apply name_rows again to convert back
from the explicit column to the implicit rownames.
name_rows(df)
| df | a data.frame, with either  | 
name_rows(mtcars)
name_rows(name_rows(mtcars))
df <- data.frame(a = sample(10))
arrange(df, a)
arrange(name_rows(df), a)
name_rows(arrange(name_rows(df), a))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.