Moves row names to a column in the data frame.
Usage
rownames_to_column(x, name, before = NULL, after = NULL)
Arguments
- x
A data frame
- name
A string for the row names new column name.
- before, after
An integer for the column index or string
for the column name of where to move the columns. Defaults to after
last column. Only specify one of these arguments.