setRowNames: Wrapper for 'rownames(x) = y', 'colnames(x) = y'.

View source: R/setRowColNames.R

setRowNamesR Documentation

Wrapper for rownames(x) = y, colnames(x) = y.

Description

Wrapper for rownames(x) = y, colnames(x) = y.

Usage

setRowNames(x, names)

setColNames(x, names)

Arguments

x

[matrix | data.frame]
Matrix or data.frame.

names

[character]
New names for rows / columns.

Value

Changed object x.

Examples

setColNames(matrix(1:4, 2, 2), c("a", "b"))

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to setRowNames in BBmisc...