get_gdeltnews | R Documentation |
Get last 2 weeks of GDELT COVID news. Deduplicated by DateTime, URL, and DomainCountryCode.
get_gdeltnews(period = 14, start_date = Sys.Date() - 1)
period |
(numeric) Number of days to look back from start_date |
start_date |
(Date) Date from which to look back |
Returns a data frame with n rows and 16 columns, including:
DateTime
POSIXct
URL
character
Title
character
SharingImage
character
LangCode
character
DocTone
double
DomainCountryCode
character
Location
character
Lat
double
Lon
double
iso2code
character
Adm1Code
character
GeoType
character
ContextualText
character
GeoCoord
character
Adm2Code
character
Function may fail if start date is set to current date or in future. News data files aren't often avilable for the current date.
## Not run:
gdeltnews_df <- get_gdeltnews()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.