SubscriptList(externalVector)
SubscriptList()所属R语言包:externalVector
Function to convert a list of array subscripts to a list objects
函数将数组下标列表列表对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
SubscriptList takes a list of subscripts to a subset or subassign operation and converts each subscript to an object belonging to the virtual class vectorIndex.
需要SubscriptList标列表的一个子集或subassign操作,每个标转换对象属于虚拟类vectorIndex。
用法----------Usage----------
SubscriptList(subs, length.object, dim.object = NULL, names.object = NULL, dimnames.object = NULL, assign.operation = FALSE)
参数----------Arguments----------
参数:subs
An object of class "list", elements are valid subscripts.
“列表”类的一个对象,元素是有效标。
参数:length.object
A scalar of class "integer", representing the length of the object being subsetted or subassigned.
一类的“整数”的标量,代表子集或subassigned对象的长度。
参数:dim.object
An object of class "integer" or NULL, the dimension of the object.
类“整数”或NULL的对象,对象的尺寸。
参数:names.object
An object belonging to class union "validNamesClass", the names of the object viewed as a vector.
对象属于类联盟“validNamesClass”,被视为一个向量对象的名称。
参数:dimnames.object
NULL or an object of class "list", each of whose elements are objects belonging to class union "validNamesClass".
NULL或类“列表”的对象,每个的元素是属于类工会“validNamesClass”的对象。
参数:assign.operation
A scalar of class "logical", if TRUE the subscripts are for a subasign operation, if FALSE, the subscripts are for a subset operation.
标一类“逻辑”,如果TRUE标是为subasign操作的,如果FALSE,下标是一个子集操作。“
值----------Value----------
An object of class "list" of same length as subs with each element a
subs每个元素的长度相同类“名单”的对象
作者(S)----------Author(s)----------
Saikat DebRoy <a href="mailto:<saikat@stat.wisc.edu>"><saikat@stat.wisc.edu></a>
参见----------See Also----------
See class union vectorNamesType-class for possible subscripts which are matched against the names.object or elements of dimnames.object.
级工会vectorNamesType-class对names.object或dimnames.object的元素匹配的可能标。
Also see class union vectorIndex-class for some other possible subscripts and for all possible elements in the returned list.
也看到类工会vectorIndex-class一些其他可能的标,并在返回列表中的所有可能的元素。
Finally, see [ for other subscripts that are valid.
最后,看到[其他有效标。
举例----------Examples----------
subs <- alist(i= , j= )
subs$j <- 1:4
SubscriptList(subs, 15, c(3, 5))
SubscriptList(list(i=c("a", "c"), j=-2), 15, c(3, 5),
dimnames=list(letters[1:3], LETTERS[1:5]))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|