R/gdelt_full_text_api.R
instability_api_locations.Rd
Returns instability data for given locations
instability_api_locations(
location_ids = c("US", "IS", "TU"),
random_locations = NULL,
variable_names = c("instability", "conflict", "tone", "protest", "artvolnorm"),
days_moving_average = NA,
time_periods = "daily",
use_multi_locations = F,
return_wide = T,
visualize = F,
nest_data = F,
return_message = T
)
Specify the location IDs
Number of random location IDs to add
Specify variables they can include:
instability
conflict
protest
tone
artvolnorm
: Relative mentions
Specify day moving average, NA is unsmoothed
Specified time period
daily
15min
if TRUE
returns all cities in a select country
if TRUE
returns a wide data frame
if `TRUE` returns a ggplot2 visualization
if TRUE
returns a nested data frame
if TRUE
returns a location
if visualize
a ggplot visualization else a tibble
instability_api_locations(location_ids = c('US', 'IS', "TU"), random_locations = NULL, variable_names = c('instability', 'conflict', 'tone', 'protest', 'artvolnorm'), visualization = T, days_moving_average = NA, time_periods = 'daily', use_multi_locations = F, return_wide = T, nest_data = F, return_message = T)