Summary Method for objects of class
findFn
# S3 method for findFn
summary(object, minPackages = 12,
minCount = NA, ...)An object of class
c('summary.findFn', 'list') with the
following elements:
PackageSummarya data.frame with one row for each package and
columns Package, Count,
MaxScore, TotalScore, Date,
and pgLink. This summary is sorted per
the sortby argument in the call to
findFn.
minPackages, minCountthe minPackages and minCount
arguments in this call to
summary.findFn.
matchesthe total number of matches returned by
findFn. This is an attribute of a
findFn object; the number of rows of
object will either be matches or
maxPages*matchesPerPage, whichever is
smaller.
nrowthe number of matches in this findFn
object
nPackagesthe number of packages in this findFn
object
callthe matched call to findFn.
An object of class findFn
the minimum number of packages to include in the summary. Other packages with the same count will also appear in the summary, but packages with a smaller count will not.
The number of packages displayed will be less
than minPackages only when there are
fewer than that number of packages containing
the search term in its help pages.
the minimum count for a package to display.
minCount = 1 displays all packages.
The default is the minimum of the input
minCount and the count for
package number minPackages.
ignored
Spencer Graves
Return an object of class
c('summary.findFn', 'list') with
summary information on only packages satisfying
the minPackages and minCount
criteria. The minPackages and
minCount components of the summary
output list will be adjusted as necessary to
match characteristics of object. The
print method for a summary.findFn
object will display the minCount, but
minPackages will be a component of the
returned object without being printed.
findFn,
RSiteSearch
z <- try(findFn("spline", maxPages = 2))
if(!inherits(z, 'try-error'))summary(z, 2)
Run the code above in your browser using DataLab