var_to_rownames: Function to add a column as row names, and remove it from...

View source: R/data_clean.R

var_to_rownamesR Documentation

Function to add a column as row names, and remove it from columns

Description

Convert a column of a data frame to be its row name.

Usage

var_to_rownames(df, var = "site")

Arguments

df

A data frame.

var

The column name (as character) you want to put as row name.

Value

A data frame.


daijiang/lirrr documentation built on June 13, 2025, 1:41 p.m.