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

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

[复制链接]
发表于 2012-2-25 22:27:13 | 显示全部楼层 |阅读模式
endoapply(IRanges)
endoapply()所属R语言包:IRanges

                                        Endomorphisms via application of a function over an object's elements
                                         通过函数的应用对象的元素,自同态

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

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

Performs the endomorphic equivalents of lapply and mapply by returning objects of the same class as the inputs rather than a list.
执行endomorphic等值lapply和mapply的投入,而不是一个列表返回同一个类的对象。


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


endoapply(X, FUN, ...)

mendoapply(FUN, ..., MoreArgs = NULL)



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

参数:X
a list, data.frame or List object.
一个列表,数据框或列表对象。


参数:FUN
the function to be applied to each element of X (for endoapply) or for the elements in ... (for mendoapply).
X(endoapply)...(mendoapply)的元素的每个元素被应用到的功能。


参数:...
For endoapply, optional arguments to FUN. For mendoapply, a set of list, data.frame or List objects to compute over.
endoapply,FUN可选参数。 mendoapply,一组的列表,数据框或列表对象计算。


参数:MoreArgs
a list of other arguments to FUN.
其他参数列表FUN。


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

endoapply returns an object of the same class as X, each element of which is the result of applying FUN to the corresponding element of X.
endoapply返回同一类的对象X,其中每个元素的应用FUNX相应的元素的结果。

mendoapply returns an object of the same class as the first object specified in ..., each element of which is the result of applying FUN to the corresponding elements of ....
mendoapply返回同一类的对象,在指定的第一个对象...,其中的每个元素是申请FUN...相应的元素的结果。


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

lapply, mapply
lapply,mapply


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


  a <- data.frame(x = 1:10, y = rnorm(10))
  b <- data.frame(x = 1:10, y = rnorm(10))

  endoapply(a, function(x) (x - mean(x))/sd(x))
  mendoapply(function(e1, e2) (e1 - mean(e1)) * (e2 - mean(e2)), a, b)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 13:58 , Processed in 0.020361 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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