rownames2col: Add a Column Containing the Row Names to a Data Frame

View source: R/rownames2col.R

rownames2colR Documentation

Add a Column Containing the Row Names to a Data Frame

Description

Add a Column Containing the Row Names to a Data Frame

Usage

rownames2col(x, column_name)

Arguments

x

A data.frame.

column_name

The name of the new column containing the row.names.

Value

A data.frame.

See Also

Other bits and pieces: golden_ratio(), is_difftime_less(), is_valid_primary_key(), pause(), r_cmd_install(), str2num(), string2words(), strip_off_attributes(), tapply(), throw()

Examples

rownames2col(mtcars, column_name = "model")

fritools documentation built on June 8, 2025, 11:59 a.m.