disjoin(IRanges)
disjoin()所属R语言包:IRanges
Making Ranges disjoint
制作范围不相交
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functions for making Ranges disjoint, where no ranges overlap another.
为使Ranges相交,没有范围互相重叠的功能。
用法----------Usage----------
disjoin(x, ...)
disjointBins(x, ...)
参数----------Arguments----------
参数:x
The Ranges instance, possibly overlapping intervals.
Ranges实例,可能是重叠的时间间隔。
参数:...
Additional arguments for methods
附加参数的方法
Details
详情----------Details----------
The disjoin method returns a disjoint Ranges, by finding the union of the end points in x. In other words, the result consists of a range for every interval, of maximal length, over which the set of overlapping ranges in x is the same and at least of size 1.
disjoin方法返回脱节Ranges,找到工会终点x。换句话说,结果组成的最大长度,其中一套重叠x范围是相同的,至少大小为1,为每一个区间范围。
disjointBins segregates x into a set of bins so that the ranges in each bin are disjoint. Lower-indexed bins are filled first. The method returns an integer vector indicating the bin index for each range.
disjointBins隔离x成一箱,以便在每个容器的范围是不相交的。首先充满了较低的索引箱。该方法返回一个整数的向量表示每个范围的bin指数。
作者(S)----------Author(s)----------
M. Lawrence
参见----------See Also----------
reduce for making normal ranges, a subset of disjoint ranges, where there must be a gap of length >= 1 between each range.
reduce正常范围内,不相交的范围,其中必须有一个长度> = 1之间的每个范围的差距的一个子集。
举例----------Examples----------
ir <- IRanges(c(1, 1, 4, 10), c(6, 3, 8, 10))
disjoin(ir) # IRanges(c(1, 4, 7, 10), c(3, 6, 8, 10))[IRanges(C(1,4,7,10),C(3,6,8,10))]
disjointBins(IRanges(1, 5)) # 1L[1L]
disjointBins(IRanges(c(3, 1, 10), c(5, 12, 13))) # c(2L, 1L, 2L)[C(2L,1L,2L)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|