hits: hits attribute of an RSiteSearch object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/hits.R

Description

Returns the hits attribute of an RSiteSearch object. For the output of RSiteSearch.function, this is the number of matches for the search term. For an RSiteSearch object returned by unionRSiteSearch or intersectRSiteSearch, this is a numeric vector if the hits attributes of the arguments to unionRSiteSearch or intersectRSiteSearch.

Usage

1
hits(x)

Arguments

x

object of class RSiteSearch.

Details

attr(x, 'hits')

Value

an integer vector

Author(s)

Spencer Graves

See Also

RSiteSearch.function unionRSiteSearch intersectRSiteSearch

Examples

1
2
3
des1 <- RSiteSearch.function('differential equations', 1)

all.equal(hits(des1), attr(des1, 'hits'))

RSiteSearch documentation built on May 31, 2017, 3:47 a.m.