
Last chance! 50% off unlimited learning
Sale ends in
Ensure an object is a data frame, with rownames moved into a column
fix_data_frame(x, newnames = NULL, newcol = "term")
a data.frame or matrix
new column names, not including the rownames
the name of the new rownames column
a data.frame, with rownames moved into a column and new column names assigned