RleViews-class(IRanges)
RleViews-class()所属R语言包:IRanges
The RleViews class
RleViews类
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The RleViews class is the basic container for storing a set of views (start/end locations) on the same Rle object.
RleViews类是用于存储一组相同的RLE对象的意见(开始/结束位置)的基本容器。
Details
详情----------Details----------
An RleViews object contains a set of views (start/end locations) on the same Rle object called "the subject vector" or simply "the subject". Each view is defined by its start and end locations: both are integers such that start <= end. An RleViews object is in fact a particular case of a Views object (the RleViews class contains the Views class) so it can be manipulated in a similar manner: see ?Views for more information. Note that two views can overlap and that a view can be "out of limits" i.e. it can start before the first element of the subject or/and end after its last element.
一个RleViews对象包含了一套相同的对象的RLE称为“这一主题的向量”或简单的“主题”的意见(开始/结束位置)。每个视图定义其开始和结束的位置:两者都是整数,这样启动<=结束。对象是一个RleViews实际上是一个视图对象(在RleViews类包含视图类)的特殊情况,因此它可以以类似的方式操作:见?Views更多信息。注意两方面的意见,可以重叠和视图可以是“出”,即它可以启动的主题和/或结束前的最后一个元素之后的第一个元素的限制。
作者(S)----------Author(s)----------
P. Aboyoun
参见----------See Also----------
Views-class, Rle-class, Views-utils
意见级,RLE级,视图-utils的
举例----------Examples----------
subject <- Rle(rep(c(3L, 2L, 18L, 0L), c(3,2,1,5)))
myViews <- Views(subject, 3:0, 5:8)
myViews
subject(myViews)
length(myViews)
start(myViews)
end(myViews)
width(myViews)
myViews[[2]]
set.seed(0)
vec <- Rle(sample(0:2, 20, replace = TRUE))
vec
Views(vec, vec > 0)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|