hits | R Documentation |
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
.
matches(x)
hits(x)
x |
object of class |
nrow(x)
attr(x, 'matches')
a list with components nrows
and
matches
Spencer Graves
findFn
unionFindFn
intersectFindFn
des1 <- try(findFn('differential equations', 1))
if(inherits(des1, 'try-error')){
des1. <- matches(des1)
des. <- list(nrow=nrow(des1), matches=attr(des1, 'matches'))
all.equal(des1., des.)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.