unionRSiteSearch(RSiteSearch)
unionRSiteSearch()所属R语言包:RSiteSearch
Combine RSiteSearch Objects
“结合RSiteSearch对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Combines to RSiteSearch objects into a new RSiteSearch object with only one row for any help page duplicated between the two. unionRSiteSearch removed the duplicate entries. intersectRSiteSearch keeps only the duplicates.
结合RSiteSearch对象只有一排,两者之间的任何帮助页面复制到一个新的RSiteSearch对象。 unionRSiteSearch删除重复的条目。 intersectRSiteSearch只保留重复的。
用法----------Usage----------
unionRSiteSearch(x, y, sort.=NULL)
intersectRSiteSearch(x, y, sort.=NULL)
## S3 method for class 'RSiteSearch':
Ops(e1,e2)
# This supports "|" for "unionRSiteSearch"
# and "&" for "intersectRSiteSearch".
参数----------Arguments----------
参数:x, y
objects of class RSiteSearch.
对象的类RSiteSearch。
参数:sort.
Optional sort. argument used by sortRSiteSearch and RSiteSearch.function. Default is the sort. argument in attr(x, 'call').
可选的sort.参数用于sortRSiteSearch和RSiteSearch.function。默认是sort.参数attr(x, 'call')。
参数:e1, e2
objects of class RSiteSearch.
对象的类RSiteSearch。
Details
详细信息----------Details----------
1. xy <- rbind(x, y)
1。 XY < - rbind(的x,y)
2. For any (Package, Function) appearing in both x and y, the row with the largest Score is retained and the other is deleted.
2。对于任何(Package,Function)出现在两个x和y,将行与最大Score被保留和其他被删除。
3. Apply sortRSiteSearch to the rebuild the summary and sort the result as desired.
3。应用sortRSiteSearch重建的总结和梳理的结果。
4. attr(xy, 'hits') <- c(attr(x, 'hits'), attr(y, 'hits'))
4。 ATTR(XY,“点击”) - C(ATTR(X,“点击”),ATTR(Y,“点击”))
值----------Value----------
an object with class c('RSiteSearch', 'data.frame') as returned by sortRSiteSearch and RSiteSearch.function.
C类(RSiteSearch“,”数据框)返回的对象sortRSiteSearch和RSiteSearch.function。
注意----------Note----------
Binary operators & and | are implemented for the S3 class RSiteSearch
二元运算符&和|都实现了S3类RSiteSearch
(作者)----------Author(s)----------
Spencer Graves and Romain Francois
参见----------See Also----------
RSiteSearch.function sortRSiteSearch
RSiteSearch.functionsortRSiteSearch
实例----------Examples----------
des1 <- RSiteSearch.function('differential equations', 1)
de1 <- RSiteSearch.function('differential equation', 1)
# each retrieves 1 page of 20 hits[每一个检索的20名,第1页]
# but not the same 20[但不相同的20]
de.s <- unionRSiteSearch(des1, de1)
# combines the two, eliminating duplicates.[结合了两个,消除重复。]
# or the sorter version:[或分拣机的版本:]
de.s <- des1 | de1
# Keep only the common entries.[只保留共同的条目。]
de2 <- intersectRSiteSearch(des1, de1)
de2 <- des1 & de1
# summary and HTML still work with the combined object.[总结和HTML仍然与合并的对象。]
summary(de.s)
HTML(de.s)
summary(de2)
HTML(de2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|