Learn R Programming

fritools (version 4.6.0)

rownames2col: 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)

Value

A data.frame.

Arguments

x

A data.frame.

column_name

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

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

Run this code
rownames2col(mtcars, column_name = "model")

Run the code above in your browser using DataLab