Description Usage Arguments Value Author(s) Examples
Returns all available conflict displacement data
1 | get_conflict_data(iso3, year, limit, ci = idmc_api_key())
|
iso3 |
Character. The country iso3 code (if neglected then all the countries) |
year |
Integer. The year of the records (default all years, it also accept ranges) |
limit |
Integer. Limit the number of records returned by the API |
ci |
A character vector of IDMC_API_KEY. See [idmc_api_key()]. |
A data.frame
An Chu
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## retrieve all data of Vietnam (VNM)
get_conflict_data(iso = 'VNM')
## retrieve data from Vietnam in 2015
get_conflict_data('VNM', year = 2015)
## retrieve data from Vietnam in period 2011-2015
get_conflict_data('VNM', year = c(2011, 2015))
## limit the number of records returned by 10
get_conflict_data('VNM', limit = 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.