row_colnames: The rownames() and colnames() generics

Description Usage Arguments Note

Description

Generics for rownames/colnames

Usage

1
2
3
4
5
6
7
rownames(x, do.NULL = TRUE, prefix = "row")

rownames(x) <- value

colnames(x, do.NULL = TRUE, prefix = "col")

colnames(x) <- value

Arguments

x

An R object

do.NULL

logical. If FALSE and names are NULL, names are created.

prefix

for created names

value

a valid value for that component of dimnames(x). For a matrix or array this is either NULL or a character vector of non-zero length equal to the appropriate dimension.

Note

Dispatch on the 1st arg (the 'x' arg) only!


cdeterman/generics documentation built on May 20, 2019, 8:01 p.m.