idx2dimnames | R Documentation |
A function to map from integer offsets in an array to the corresponding values of the row and column names. There is probably a better way but I didn't find it.
idx2dimnames(x, idx)
x |
a |
idx |
An integer vector of offsets into the matrix (values
between 1 and the |
A list with two components. If it is a LIST, use
rowNames |
The row names corresponding to the integer index. |
colNames |
The column names corresponding to the integer index. |
R. Gentleman
dimnames
data(Ndists)
ltInf = is.finite(Ndists)
xx = idx2dimnames(Ndists, ltInf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.