-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hrbrmstr/master
Updating fork to master changes
- Loading branch information
Showing
48 changed files
with
684 additions
and
818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#' Top Trending (GDELT) | ||
#' | ||
#' Retrieve current (last 15 minute) "top topics" being discussed on stations | ||
#' @export | ||
gd_top_trending <- function() { | ||
query_tv("", mode = "TrendingTopics") | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#' Retrieve top words that appear most frequently in clips matching your search | ||
#' | ||
#' 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. | ||
#' | ||
#' @md | ||
#' @param 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 | ||
#' @param 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. | ||
#' @export | ||
word_cloud <- function(query, start_date = NULL, end_date = NULL) { | ||
|
||
query_tv( | ||
query = query, | ||
mode = "WordCloud", | ||
start_date = start_date, | ||
end_date = end_date | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.onLoad <- function(libname, pkgname) { | ||
|
||
packageStartupMessage("NOTE: There are breaking changes to the package API due to GDELT's v2 API") | ||
|
||
} |
Oops, something went wrong.