Description Usage Arguments Value Examples
Counts number of paragraphs with mentions.
1 2 3 4 5 6 7 | whe_mentioned(wh)
## S3 method for class 'data.frame'
whe_mentioned(wh)
## S3 method for class 'character'
whe_mentioned(wh)
|
wh |
highlighted object returned by wh_collect, see examples. |
if data.frame
is passed will append a column named mentioned
.
If character
vector is passed the function returns a character
vector.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
library(webhose)
token <- wh_token("xXX-x0X0xX0X-00X")
token %>%
wh_news(q = 'R OR Python', highlight = TRUE) %>% # use highlight!
wh_collect() -> rstats # collect results
rstats %>%
whe_mentioned() -> mentioned
mentioned <- rstats %>%
dplyr::mutate(nmentioned = whe_mentioned(highlightText))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.