Returns instability data for given locations
get_data_locations_instability_api(location_ids = c("US", "IS", "TU"),
random_locations = NULL, variable_names = c("instability", "conflict",
"tone", "protest", "artvolnorm"), visualization = "static",
days_moving_average = NA, time_periods = "daily",
use_multi_locations = F, return_wide = T, 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
NULL
: no visualization
interactive
: returns an interactive visualization
static
: returns a ggplot2 visualization
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 nested data frame
if TRUE
returns a location
if visualize
a ggplot visualization else a data_frame