newsflash (version 0.6.0)

top_text: Helper function to extract the text snippets from the top matches as a tidytext-compatible tibble or plain character vector

Description

Helper function to extract the text snippets from the top matches as a tidytext-compatible tibble or plain character vector

Usage

top_text(x, tidy = TRUE)

Arguments

x

query result object from calling query_tv

tidy

if TRUE (default) reuturn a tidytext tibble with station, show, show_date and word columns. If FALSE it just returns the character vector of the caption snippets.

Examples

Run this code
# NOT RUN {
brexit <- query_tv("brexit", start_date=as.Date("2016-01-01"), end_date=as.Date("2016-12-31"))
top_text(brexit)
# }

Run the code above in your browser using DataLab