findFn(sos)
findFn()所属R语言包:sos
Search Help Pages
搜索帮助页面
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns a data.frame from RSiteSearch(string, "function") which can be sorted and subsetted by user specifications and viewed in an HTML table. The default sort puts first packages with the most matches (Count), with ties broken using the sum of the match scores for all the hits in that package (TotalScore), etc.
返回RSiteSearch(string, "function")可以排序和子集的用户的规范和一个HTML表中查看数据框。默认的排序将第一包最匹配(Count),在这个包中的全部命中本场比赛得分的总和(TotalScore)等破有关系
用法----------Usage----------
findFn(string, maxPages = 20, sortby = NULL, verbose = 1, ...)
##???string(maxPages)
参数----------Arguments----------
参数:string
A character string. See RSiteSearch.
一个字符串。见RSiteSearch。
参数:maxPages
The maximum number of pages to download assuming 20 links per page.
假设每页20个链接的网页下载的最大数量。
参数:sortby
a character vector specifying how the data.frame returned should be sorted. Default = c('Count', 'MaxScore', 'TotalScore', 'Package', 'Score', 'Function') to sort descending on numerics and ascending on alphnumerics. Specifying sortby = c('c', 't', 'm') is equivalent to c('Count', 'TotalScore', 'MaxScore', 'Package', 'Score', 'Function').
指定的data.frame返回一个字符向量进行排序。默认目录为C(计数,MaxScore“,”TotalScore,包,分数,功能),以降序排序数字,且升高对alphnumerics。指定sortby = C(C,T,M)等价于C(计数,TotalScore,“MaxScore,包,分数,功能)。
参数:verbose
an integer: if 0, no output is printed to the console. The default 1 displays an initial line with the number of pages to be retrieved and the number of matches obtained; if the number of matches to be downloaded is less, this also is displayed on the initial line. This is followed by a second line counting the pages downloaded. If greater than 1, additional information is provided on the download process.
一个整数:如果为0,没有输出打印到控制台。默认的1显示初始行与要检索的页面数量和所得的匹配的数目;如果要下载的匹配的数目少,这也被显示在初始线。这之后是下载的网页的第二行计数。如果大于1,附加信息被提供的下载过程。
参数:...
ignored
忽视
Details
详细信息----------Details----------
findFn searchs the help pages of packages covered by the RSiteSearch archives. To restrict the search to only packages installed locally, use help.search.
findFn的searchs的帮助页面的包RSiteSearch档案所涵盖的。要限制搜索只在本地安装的软件包,使用help.search。
1. Access the RSitSearch engine with string, restricting to "functions", storing Score, Package, Function, Date, Description, and Link in a data.frame.
1。访问RSitSearch发动机,string,限制“功能”,存储Score,Package,Function,Date,<X >和Description在一个Link。
2. Compute Count, MaxScore and TotalScore for each Package accessed. Combine them in a matrix PackageSummary.
2。计算Count,MaxScore和TotalScore为每一个Package访问。将它们组合在一个矩阵PackageSummary。
3. Sort PackageSummary in the order defined by the occurrance of c('Count', 'MaxScore', 'TotalScore', 'Package') in sortby.
3。排序PackageSummary的发生规律的c(“计数”,“MaxScore,TotalScore”,“一揽子”)sortby定义的顺序。
4. Merge PackageSummary with the data.frame of search matches.
4。合并PackageSummarydata.frame的搜索匹配的。
5. Sort the combined data.frame as defined by sort..
5。排序合并data.frame所定义的sort.。
6. Make the result have class c("findFn", "data.frame") and add attributes matches, PackageSummary, string, and call.
6。的结果有C类(“findFn”,“数据框”),并添加属性matches,PackageSummary,string和call。
7. Done.
7。完成。
值----------Value----------
an object of class c('findFn', 'data.frame') with columns and attributes as follows:
C类(“findFn”,“数据框)的对象与柱和属性如下:
参数:Columns
Count Total number of matches downloaded in this package
计数总数的比赛,在此程序包下载
MaxScore maximum of the Score over all help pages selected within each Package. See Score below or the Namazu website (link below) for more information on how the score is determined.
MaxScore最大的Score所有帮助页面,选择在每个Package的。见Score或Namazu网站(以下链接)的更多信息,得分是如何确定的。
TotalScore sum of the Score over all help pages selected within each Package. See Score below or the Namazu website (link below) for more information on how the score is determined.
TotalScore总和Score所有帮助页面,选择在每个Package。见Score或Namazu网站(以下链接)的更多信息,得分是如何确定的。
Package Name of the package containing a help page meeting the search criteria
包的包的名称包含符合搜寻条件的一个帮助页面
Function Name of the help page found that meets the indicated search criterion.
功能名称的帮助页面发现符合指定的搜索条件。
Date Date of the help page
日期的帮助页
Score Score returned by RSiteSearch, discussed in the Namazu website (link below).
分数分数返回RSiteSearch,讨论在Namazu网站的(下面的链接)。
Description Title of the help page
说明标题的帮助页
Link Universal Resource Locator (URL) for the help page
一个统一资源定位器(URL)的帮助页
参数:Attributes
matches an integer = total number of matches found by the search. This typically will exceed the number of rows found, because the search algorithm sometimes finds things that are not help pages for packages.
与整数总数比赛通过搜索找到相匹配。这通常人数将超过行发现,因为搜索算法有时会发现东西都没有帮助文件的软件包。
PackageSummary a data.frame with one row for each package and columns Package, Count, MaxScore, TotalScore, and Date, sorted as in the sort. argument.
PackageSummary数据框带有一个行的每个程序包和列Package,Count,MaxScore,TotalScore和Date,排序在sort.参数。
string the string argument in the call.
字符串的string参数中的call。
callthe matched call
callthe匹配的呼叫
(作者)----------Author(s)----------
Spencer Graves, Sundar Dorai-Raj, Romain Francois. Duncan Duncan
Murdoch suggested the "???" alias for "findFn" and contributed the
code for it.
Special thanks to Jonathan Baron and Andy Liaw. Baron maintains the
RSiteSearch data base. Liaw and Baron created the <code>RSiteSearch</code>
function in the <code>utils</code> package.
参考文献----------References----------
determining <code>Score</code>
参见----------See Also----------
help.search to search only installed packages. RSiteSearch, download.file http://finzi.psych.upenn.edu/search.html for a web interface to this same search capability with more general options. findFn searches only "Target: Functions" from that site, ignoring the R-help arcihves.
help.search只搜索已安装的软件包。 RSiteSearch,download.file http://finzi.psych.upenn.edu/search.html一个网络接口,以同样的搜索能力与更普遍的选择。 findFn只搜索“目标:函数从该网站上,而忽略的R帮助arcihves的。
http://www.r-project.org/search.html for a list of alternative R search capabilities, each of which may be best for different types of inquiries.
http://www.r-project.org/search.html一个备选方案R的搜索功能,其中每一个可能是最适合不同类型的查询列表。
findFunction for a completely different function with a similar name.
findFunction具有类似名称的完全不同的功能。
实例----------Examples----------
z <- findFn("spline", maxPages = 2)
# alternative[替代]
zq <- ???spline(2)
all.equal(z, zq)
# To search for 2 terms, not necessarily together:[要搜索2项,不一定是共同的:]
RSS <- findFn('RSiteSearch function', 1)
matches(RSS)
# To search for an exact string, use braces:[要搜索一个确切的字符串,使用大括号:]
RSS. <- findFn('{RSiteSearch function}', 1)
matches(RSS.) # list(nrow = 0, matches = 0)[列表(NROW = 0赛事= 0)]
# example in which resulting page has some unicode characters[例如在结果页面有一些Unicode字符]
Lambert <- findFn("Lambert")
Lambert
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|