positiveIndex-class(externalVector)
positiveIndex-class()所属R语言包:externalVector
Class "positiveIndex", index class representing a sequence of
类“positiveIndex”,指数类代表一个序列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This represents a subscript of arbitrary non-negative
这是一个任意的非负的标
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("positiveIndex", val). If val is missing, the result is an object of class "positiveIndex" of length 0. Otherwise, it is coerced to an integer and an object of class "positiveIndex" is created which has the same .Data slot as val. The rangeIndex and noNA slots are calculated by the
创建对象可以通过检测的形式new("positiveIndex", val)。如果val的丢失,其结果是一个对象类的长度"positiveIndex"0。否则,它被强制转换为一个整数,创建有相同"positiveIndex"插槽.Dataval类的对象。 rangeIndex和noNA插槽的计算
插槽----------Slots----------
.Data: Object of class "integer", the actual
.Data:Object类的"integer",实际
rangeIndex: Object of class "integer" of length
类rangeIndex长度"integer":对象
noNA: Object of class "logical" of length 1,
noNA:对象,类长度为1"logical"
延伸----------Extends----------
Class "integer", directly. Class "vectorIndex", directly.
类"integer",直接。类"vectorIndex",直接。
方法----------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 "allIndex"
类“allIndex”
x+scalar Add scalar to x. Result is x with x@.Data replaced by
x+scalar加入scalarx。结果是x用x@.Data取代
scalar+x Add scalar to x. Result is x with x@.Data replaced by
scalar+x加入scalarx。结果是x用x@.Data取代
x*scalar Multiply x by scalar. Result is x with x@.Data replaced by
x*scalar乘以xscalar的。结果是x用x@.Data取代
scalar*x Multiply x by scalar. Result is x with x@.Data replaced by
scalar*x乘以xscalar的。结果是x用x@.Data取代
dim(x) <- value Set a dimension on x. If value is of
昏暗的(X)< - 值设置x一个维度。如果值是
x[i] Subset x. If length of i is 0, the result is an object of class "noneIndex". Otherwise, the result is an object of class "sliceIndex" or of class
x[i]子集X。如果长度i是0,结果是一个对象类"noneIndex"。否则,其结果是一个对象类"sliceIndex"或类
x[] Subset x with the subscript missing. Result is x.
x[]下标子集X失踪。结果是x。
allNA(x) Are all elements of x NA? Result is
allNA(x)xNA的所有元素?结果是
anyNA(x) Is any element of x NA? Result is
anyNA(x)是xNA任何元素?结果是
as.integer(x) Convert x to an R subscript -
as.integer(x)转换x的R标 -
initialize(.Object, .Data) Initialize .Object.
initialize(.Object, .Data)初始化.Object。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|