hits: matches attribute of a findFn object

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

View source: R/hits.R

Description

Returns the matches attribute of a findFn object. For the output of findFn, this is the number of matches for the search term. For a findFn object returned by unionFindFn or intersectFindFn, this is a numeric vector if the matches attributes of the arguments to unionFindFn or intersectFindFn.

Usage

1
2
matches(x)
hits(x)

Arguments

x

object of class findFn.

Details

nrow(x) attr(x, 'matches')

Value

a list with components nrows and matches

Author(s)

Spencer Graves

See Also

findFn unionFindFn intersectFindFn

Examples

1
2
3
4
5
6
des1 <- findFn('differential equations', 1)

des1. <- matches(des1)
des. <- list(nrow=nrow(des1), matches=attr(des1, 'matches'))

all.equal(des1., des.)

sos documentation built on May 29, 2017, 5:13 p.m.

Search within the sos package
Search all R packages, documentation and source code