fix_data_frame: Ensure an object is a data frame, with rownames moved into a column
Description
Ensure an object is a data frame, with rownames moved into a column
Usage
fix_data_frame(x, newnames = NULL, newcol = "term")
Arguments
newnames
new column names, not including the rownames
newcol
the name of the new rownames column
Value
a data.frame, with rownames moved into a column and new column
names assigned