shrinkVector(HilbertVis)
shrinkVector()所属R语言包:HilbertVis
shrink a vector by partitioning it into bins and taking the maxima in
缩小分割成箱,并以极大的向量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a (potentially very long) vector, the vector is partitioned into a given number of (up to rounding errors) equally long bins, and a vector summerizing each of the bins with one number it returned.
鉴于(可能很长)矢量,矢量分割成一个给定的数目(舍入误差)同样长箱,它返回一个向量,summerizing一个数字,每一个垃圾桶。
用法----------Usage----------
shrinkVector(vec, newLength, mode = c("max", "min", "absmax", "mean"))
参数----------Arguments----------
参数:vec
The vector to be shrunk. May be an ordinary numeric or integer vector or an IRanges::Rle vector.
缩小的向量。可能是一个普通的数字或整数向量或IRanges :: RLE向量。
参数:newLength
The desired size of the return vector, i.e., the number of partitions
返回向量的大小,即分区的数量
参数:mode
the summerization mode: 'max': take the maximal value of each bin; 'min': take the minimal value of each bin; 'absmax': take the value with largest absolute value; 'mean': take the mean of the bin values.
“最小”的summerization模式:“最大”:每个容器的最大价值;:采取每个容器的最低值; absmax“:取绝对值最大的价值”的意思是“:以平均垃圾桶值。
值----------Value----------
A vector of length newLength with the summary values of each of the bin of vector.
长度的向量newLength每个的vector的垃圾桶的汇总值。
作者(S)----------Author(s)----------
Simon Anders, EMBL-EBI (sanders\@fs.tum.de)
参见----------See Also----------
plotLongVector, ShortRead::pileup,
plotLongVector,ShortRead::pileup
举例----------Examples----------
shrinkVector( 100000 + 1:1000, 17 )
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|