hits {RSiteSearch}R Documentation

hits attribute of an RSiteSearch object

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

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

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

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


[Package RSiteSearch version 1.0-6 Index]