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

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

[复制链接]
发表于 2012-9-30 12:02:08 | 显示全部楼层 |阅读模式
unionFindFn(sos)
unionFindFn()所属R语言包:sos

                                         Combine findFn Objects
                                         结合findFn对象

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

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

Combines to findFn objects into a new findFn object with only one row for any help page duplicated between the two.  unionFindFn removes duplicate entries. intersectFindFn keeps only the duplicates.
结合findFn对象到一个新的findFn对象只有一个行任何帮助,两者之间的复制。 unionFindFn删除重复的条目。 intersectFindFn只保留重复的。


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


unionFindFn(e1, e2, sortby=NULL)
intersectFindFn(e1, e2, sortby=NULL)

## S3 method for class 'findFn'
Ops(e1,e2)
# This supports "|" for "unionFindFn"
# and "&" for "intersectFindFn".



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

参数:e1, e2
objects of class findFn.  
对象的类findFn。


参数:sortby
Optional sortby argument used by sortFindFn and findFn.  Default is the sortby argument in attr(e1, 'call').  
可选的sortby参数用于sortFindFn和findFn。默认是sortby参数attr(e1, 'call')。


Details

详细信息----------Details----------

1.  e12 <- rbind(e1, e2)
1。 E12 < -  rbind(e1,e2的)

2.  For any (Package, Function) appearing in both e1 and e2, the row with the largest Score is retained and the other is deleted.
2。对于任何(Package,Function)出现在两个e1和e2,将行与最大Score被保留和其他被删除。

3.  Apply sortFindFn to the rebuild the summary and sort the result as desired.
3。应用sortFindFn重建的总结和梳理的结果。

4.  attr(e12, 'matches') <- c(attr(e1, 'matches'), attr(e2, 'matches'))
4。 ATTR(E12,匹配) -  C(ATTR(E1,匹配),ATTR(E2,匹配))


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

an object with class c('findFn', 'data.frame') as returned by sortFindFn and findFn.
C类(findFn“,”数据框)返回的对象sortFindFn和findFn。


注意----------Note----------

Binary operators &amp; and | are implemented for the S3 class findFn
二元运算符&amp;和|都实现了S3类findFn


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



Spencer Graves and Romain Francois




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

findFn sortFindFn
findFnsortFindFn


实例----------Examples----------


des1 <- findFn('differential equations', 1)
de1 <- findFn('differential equation', 1)
# each retrieves 1 page of 20 hits[每一个检索的20名,第1页]
# but not the same 20[但不相同的20]

de.s <- unionFindFn(des1, de1)
# combines the two, eliminating duplicates.[结合了两个,消除重复。]

# or the sorter version:[或分拣机的版本:]
de.s. <- des1 | de1

all.equal(de.s, de.s.)




# Keep only the common entries.[只保留共同的条目。]
de2 <- intersectFindFn(des1, de1)
de2. <- des1 &amp; de1

all.equal(de2, de2.)


# summary and print still work with the combined object.[总结和打印合并的对象。]
summary(de.s)
de.s

summary(de2)
de2




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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 16:39 , Processed in 0.022242 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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