setrownames: Rename Row Names of a Data Frame or Matrix

View source: R/misc.R

setrownamesR Documentation

Rename Row Names of a Data Frame or Matrix

Description

This function renames the row names of a data frame or matrix to the specified names.

Usage

setrownames(object, nm)

Arguments

object

A data frame or matrix whose row names will be renamed.

nm

A character vector containing the new names for the rows.

Value

A data frame or matrix with the new row names.


easybio documentation built on April 12, 2025, 1:59 a.m.