if (FALSE) {
df1 <- GetGDELT(start_date="1979-01-01", end_date="1979-12-31")
df2 <- GetGDELT(start_date="1979-01-01", end_date="1979-12-31",
row_filter=ActionGeo_CountryCode=="US")
df3 <- GetGDELT(start_date="1979-01-01", end_date="1979-12-31",
row_filter=Actor2Geo_CountryCode=="RS" & NumArticles==2 & is.na(Actor1CountryCode),
1:5)
df4 <- GetGDELT(start_date="1979-01-01", end_date="1979-12-31",
row_filter=Actor2Code=="COP" | Actor2Code=="MED",
contains("date"), starts_with("actor"))
# Specify a local folder to store the downloaded files
df5 <- GetGDELT(start_date="1979-01-01", end_date="1979-12-31",
row_filter=ActionGeo_CountryCode=="US",
local_folder = "~/gdeltdata")
}
Run the code above in your browser using DataLab