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, 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 Sept. 17, 2024, 1:08 a.m.