addnames | R Documentation |
Generates names or dimnames for objects.
addnames(x, ...)
## Default S3 method:
addnames(x, ...)
## S3 method for class 'vector'
addnames(x, prefix = "x", sep = "", ...)
## S3 method for class 'array'
addnames(x, prefix = letters[1:length(dim(x))], sep = "", ...)
## S3 method for class 'matrix'
addnames(x, prefix = c("row", "col"), ...)
x |
object whose names are generated. |
... |
extra arguments to allow extension and passed to the next method. |
prefix |
prefix string to use. A vector can be used to specify a prefix
for each dimension of |
sep |
separator used between the prefix and the numeric index. |
the input object updated with names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.