cutWithMinN(edgeR)
cutWithMinN()所属R语言包:edgeR
Cut numeric vector into non-empty intervals
切成非空区间的数字向量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Discretizes a numeric vector. Divides the range of x into intervals, so that each interval contains a minimum number of values, and codes the values in x according to which interval they fall.
离散数字向量。划分范围x成间隔,使每个区间包含一个值的最低数量,x根据间隔,他们属于代码的值。
用法----------Usage----------
cutWithMinN(x, intervals=2, min.n=1)
参数----------Arguments----------
参数:x
numeric vector.
数字向量。
参数:intervals
number of intervals (greater than or equal to 2).
间隔数(大于或等于2)。
参数:min.n
minimum number of values in any interval.
在任何区间的最低值。
Details
详情----------Details----------
This function strikes a compromise between the base functions cut, which by default cuts a vector into equal length intervals, and quantile, which is suited to finding equally populated intervals.
此功能的基本功能之间取得妥协cut,默认情况下,切成向量长度相等的时间间隔,和quantile,这是适合寻找同样填充的间隔。
值----------Value----------
A list with components:
与组件列表:
参数:group
integer vector of same length as x indicating which interval each value belongs to.
x每个值属于该区间的长度相同的整数向量。
参数:breaks
numeric vector of length intervals+1 giving the left and right limits of each interval.
长度的数字矢量intervals+1给每个区间的左,右极限。
作者(S)----------Author(s)----------
Gordon Smyth
参见----------See Also----------
cut, quantile.
cut,quantile。
举例----------Examples----------
x <- c(1,2,3,4,5,6,7,100)
cutWithMinN(x,3,min.n=1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|