ez.reindex | R Documentation |
internally call row.names(df) <- NULL
ez.reindex(df)
df |
a data frame |
returns a new df
ez.rnames
occasionally, the index of a data frame could be broken, eg, after removing a row:
original row.names() is 1, 2, 3, then drop row 2
if not reindex, new index is 1, 3
if reindex, new index is 1, 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.