Learn R Programming

easybio (version 1.1.1)

setcolnames: 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)

Value

A data frame or matrix with the new column names.

Arguments

object

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

nm

A character vector containing the new names for the columns.