setcolnames: Rename Column Names of a Data Frame or Matrix

View source: R/misc.R

setcolnamesR Documentation

Rename Column Names of a Data Frame or Matrix

Description

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

Usage

setcolnames(object, nm)

Arguments

object

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

nm

A character vector containing the new names for the columns.

Value

A data frame or matrix with the new column names.


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