setColNames: Set column and row names of an object

View source: R/matrix.R

setColNamesR Documentation

Set column and row names of an object

Description

These are convenience functions that return an object with its column or row names changed. Use it in pipes.

Usage

setColNames(x, names)

setRowNames(x, names)

Arguments

x

an object.

names

column or row names to be assigned to the object.

Author(s)

Sercan Kahveci

Examples

setColNames(ToothGrowth,c("length","supplement","dosage"))
setRowNames(BOD,BOD$Time)


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.