rownames2col {fritools}R 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")

[Package fritools version 4.5.0 Index]