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 Feb. 3, 2024, 5:42 p.m.