instability_api_locations | R Documentation |
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
)
location_ids |
Specify the location IDs |
random_locations |
Number of random location IDs to add |
variable_names |
Specify variables they can include:
|
days_moving_average |
Specify day moving average, NA is unsmoothed |
time_periods |
Specified time period
|
use_multi_locations |
if |
return_wide |
if |
visualize |
if 'TRUE' returns a ggplot2 visualization |
nest_data |
if |
return_message |
if |
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'), visualize = T, days_moving_average = NA, time_periods = 'daily', use_multi_locations = F, return_wide = T, nest_data = F, return_message = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.