Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

namerows-6u

Name rows


Description

Add variable to data frame containing rownames

Usage

namerows(df, col.name = "id")

Arguments

df

data frame

col.name

name of new column containing rownames

Details

This is useful when the thing that you want to melt by is the rownames of the data frame, not an explicit variable

Author(s)

Hadley Wickham <h.wickham@gmail.com>


reshape

Flexibly Reshape Data

v0.8.8
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.