Ids | R Documentation |
Sets and retrieves column and row names. The functions are for compatibility with SPlus.
colIds(x, ...)
rowIds(x, ...)
x |
a numeric matrix. |
... |
passed on to |
Usually in R the functions colnames
and rownames
are
used to retrieve and set the names of matrices. The functions
rowIds
and colIds
, are S-Plus like synonyms.
## Create Pascal Matrix:
P <- pascal(3)
P
rownames(P) <- letters[1:3]
P
colIds(P) <- as.character(1:3)
P
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.