rep2id(smcUtils)
rep2id()所属R语言包:smcUtils
rep2id
rep2id
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Turns a vector of replicate numbers into a vector
打开到向量中的复制数的矢量
用法----------Usage----------
rep2id(rep)
参数----------Arguments----------
参数:rep
a vector giving the number of replicates for each component
给予的数目的矢量为每个组件复制
值----------Value----------
a vector giving indices
一个向量,指数
(作者)----------Author(s)----------
Jarad Niemi
参见----------See Also----------
resampling
resampling
实例----------Examples----------
# The goal here is to get functionality that might be expected from[这里的目标是获得功能,可能来自于]
# rep(1:4,each=1:4) # but the rep function only takes the first value in `each'[代表,每= 1:4(1:4),但代表功能,只需要在每一个的第一个值]
all.equal(rep(1:4,each=1:4),rep2id(rep(1,4)))
rep2id(1:4)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|