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.
函数从数组中的整数偏移映射到相应的值的行和列的名称。有可能是一个更好的办法,但我没有找到它。
用法----------Usage----------
idx2dimnames(x, idx)
参数----------Arguments----------
参数:x
a matrix or data.frame.
matrix或data.frame。
参数:idx
An integer vector of offsets into the matrix (values between 1 and the length of the matrix.
到矩阵(值length矩阵之间的一个整数偏移向量。
值----------Value----------
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.
列名对应的整数索引。
作者(S)----------Author(s)----------
R. Gentleman
参见----------See Also----------
dimnames
dimnames
举例----------Examples----------
data(Ndists)
ltInf = is.finite(Ndists)
xx = idx2dimnames(Ndists, ltInf)