word_cloud: Retrieve top words that appear most frequently in clips...

View source: R/word-cloud.R

word_cloudR Documentation

Retrieve top words that appear most frequently in clips matching your search

Description

The API takes the 200 most relevant clips that match your search and returns the terms for a "word cloud" of up to the top 200 most frequent words that appeared in those clips (common stop words are automatically removed). This is a powerful way of understanding the topics and words dominating the relevant coverage and suggesting additional contextual search terms to narrow or evolve your search. Note that if there are too few matching clips for your query, the word cloud may be blank.

Usage

word_cloud(query, start_date = NULL, end_date = NULL)

Arguments

query

query string in GDELT format. See QUERY in https://blog.gdeltproject.org/gdelt-2-0-television-api-debuts/ for details; use list_networks() to obtain valid station/network identifiers

start_date, end_date

start/end dates. Leaving both NULL searches all archive history. Leaving just start_date NULL sets the start date to July 2009. Leaving just end_date NULL sets the end date to today.


hrbrmstr/newsflash documentation built on Dec. 4, 2022, 1:35 p.m.