Learn R Programming

broom (version 1.0.0)

fix_data_frame: Ensure an object is a data frame, with rownames moved into a column

Description

This function is deprecated as of broom 0.7.0 and will be removed from a future release. Please see tibble::as_tibble.

Usage

fix_data_frame(x, newnames = NULL, newcol = "term")

Value

a data.frame, with rownames moved into a column and new column names assigned

Arguments

x

a data.frame or matrix

newnames

new column names, not including the rownames

newcol

the name of the new rownames column

See Also

Other deprecated: bootstrap(), confint_tidy(), data.frame_tidiers, finish_glance(), summary_tidiers, tidy.density(), tidy.dist(), tidy.ftable(), tidy.numeric()