matrixIndex-class(externalVector)
matrixIndex-class()所属R语言包:externalVector
Class "matrixIndex", index class representing a set of row and
类“matrixIndex”,指数类代表一个行集和
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Objects of class "matrixIndex" represent subscripts corresponding to a submatrix of some matrix of a given size. Like the
类对象的"matrixIndex"指一个给定大小的矩阵的一些子矩阵对应的下标。像
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("matrixIndex", row, col, origdim, Names).
创建对象可以通过检测的形式new("matrixIndex", row, col, origdim, Names)。
插槽----------Slots----------
row: Object of class "vectorIndex", the row
row类"vectorIndex",该行的对象
col: Object of class "vectorIndex", the column
col类"vectorIndex",列对象
origdim: Object of class "integer", the
origdim类"integer",对象
Names: Object of class "vectorNamesType", names for the submatrix elements when the submatrix is treated as
Names类"vectorNamesType",为子矩阵元素的名称的对象时,子阵被视为
延伸----------Extends----------
Class "externalVector", directly.
类"externalVector",直接。
方法----------Methods----------
Signature components for the methods are:
签名组件的方法是:
The class "allIndex"
类“allIndex”
Length one positive "integer"
长度一个积极的“整数”
The class "ANY"
类的“ANY”
The class "ANY"
类的“ANY”
The class "logical"
类的“逻辑”
The class "ANY"
类的“ANY”
The class "allIndex"
类“allIndex”
x[i, j, drop=FALSE] Create another object of cloass matrixIndex with same origdims represents a further submatrix of the full matrix. If drop is TRUE and at least one of the dimensions of the answer is 1, the answer
X [I,J,跌幅为FALSE]创建另一个cloass对象matrixIndex同origdims进一步的全矩阵的子阵。 drop如果是TRUE“至少有一个答案的尺寸是1,答案
x[[i]] Get the subscript representing the indices for
X [[]代表为指数的标
dim(x) Get the dimension of x.
暗淡(X)维x。
dimnames(x) Get the dimnames of x.
(X)dimnamesxdimnames。
length(x) Get the length of x considered as a
长度(x)的长度x视为
names(x) Get the names of x.
名称(X)的名字x。
setDimNames(x, value) Set the dimnames of x and
(X值)setDimNames设置xdimnames
setNames(x, value) Set the names of x and return the
setNames(X值)x设置的名称,并返回
as(x, "vectorIndex") Coerce x to an object of class
(X,“vectorIndex”)强制x到一个类的对象
参见----------See Also----------
vectorIndex-class for the class of row and column subscripts.
vectorIndex-class类的行和列标。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|