Learn R Programming

dplyr (version 1.0.10)

add_rownames: Convert row names to an explicit variable.

Description

[Deprecated] Please use tibble::rownames_to_column() instead.

Usage

add_rownames(df, var = "rowname")

Arguments

df

Input data frame with rownames.

var

Name of variable to use