Description Usage Arguments Value Examples
Search for terms.
1 2 3 4 | whe_search(wh, search, output, where)
## S3 method for class 'data.frame'
whe_search(wh, search, output, where = "text")
|
wh |
highlighted object returned by wh_collect, see examples. |
search |
regex to search, passed to |
output |
name of output column. |
where |
column where to search. |
Returns the number of times the search
was found.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
library(webhose)
token <- wh_token("xXX-x0X0xX0X-00X")
token %>%
wh_news(q = '"R programming"') %>%
wh_collect() -> rstats # collect results
rstats %>%
whe_search("Hadley|Wickham", "Hadley_Wickham") -> hadley
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.