找回密码
 注册
查看: 464|回复: 0

R语言 HilbertVis包 makeWiggleVector()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:43:58 | 显示全部楼层 |阅读模式
makeWiggleVector(HilbertVis)
makeWiggleVector()所属R语言包:HilbertVis

                                         generate a "wiggle vector" from start/end/value data
                                         生成“1943矢量从开始/结束/值数据”

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Given intervals in the form of a "start" and an "end" vectors and corresponding values, generate a "wiggle vector" of a given length that contains the specified values in the vector elements indicated by the intervals.
在“开始”和“终结”的向量和相应的值的形式给出的时间间隔,产生一个给定长度的间隔表示的向量元素,其中包含指定的值的“摆动向量”。


用法----------Usage----------


makeWiggleVector(start, end, value, chrlength )



参数----------Arguments----------

参数:start
The start coordinates of the intervals. As usual in R, these are 1-based.
开始坐标的间隔。通常在研发,这些都是基于1。


参数:end
The end coordinates of the intervals. As usual, the end points are included.
最终坐标的间隔。像往常一样,终点也包括在内。


参数:value
The values to be put in the wiggle vector. Where intervals overlap, the values are added.
值要放在在摆动向量。在间隔重叠,增加值。


参数:chrlength
The desired length of the returned vector.
返回向量的长度。


值----------Value----------

A vector as described above.
一个如上所述的vector。


作者(S)----------Author(s)----------


Simon Anders, EMBL-EBI, sanders\@fs.tum.de



参见----------See Also----------

For a value vector containing only ones, this function acts similar as
向量只包含一个值,这个函数的作用类似于作为


举例----------Examples----------


   intervalStarts <- c(3,10,17,22)
   intervalEnds <- c(7,13,20,26)
   values <- c(2, 1.5, .3, 4)
   chrlength <- 30
   wig <- makeWiggleVector( intervalStarts, intervalEnds, values, chrlength )
   # The same effect can be achieved with the following R code, which, however[可以用下面的R代码实现同样的效果,但]
   # is much slower:[慢得多:]
   wig2 <- numeric(chrlength)
   for( i in 1:length(values) )
      wig2[ intervalStarts[i]:intervalEnds[i] ] <-
         wig2[ intervalStarts[i]:intervalEnds[i] ] + values[i]
   # Let's check that we got the same:[让我们来看看,我们得到了相同的:]
   all( wig == wig2 )      

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-6 03:51 , Processed in 0.025569 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表