Generating Names

Usage

addnames(x, ...)

S3 (default)
`addnames`(x, ...)

S3 (vector)
`addnames`(x, prefix = "x", sep = "", ...)

S3 (array)
`addnames`(x, prefix = letters[1:length(dim(x))], sep = "", ...)

S3 (matrix)
`addnames`(x, prefix = c("row", "col"), ...)

Arguments

x
object whose names are generated.
prefix
prefix string to use. A vector can be used to specify a prefix for each dimension of x. Names are build as .
sep
separator used between the prefix and the numeric index.
...
extra arguments to allow extension and passed to the next method.

Description

Generates names or dimnames for objects.