get_info | R Documentation |
This function reports the availability of data files on the SUNGEO server, searchable by country and topic.
get_info(country_names = NULL, country_iso3s = NULL, topics = NULL)
country_names |
Country name(s). Character string (single country) or vector of character strings (multiple countries). |
country_iso3s |
Country code (ISO 3166-1 alpha-3). Character string (single country) or vector of character strings (multiple countries). |
topics |
Data topics. See |
list object, with three slots: 'summary', 'topics', and 'geoset'.
get_data
# Get list of all available data
## Not run:
out_1 <- get_info()
out_1["summary"]
out_1["topics"]
out_1["geosets"]
## End(Not run)
# Get list of available data for a single country
## Not run:
out_2 <- get_info(country_names="Afghanistan")
out_2
## End(Not run)
# Get list of available data for a single topic
## Not run:
out_3 <- get_info(topics="Elections:LowerHouse:CLEA")
out_3
## End(Not run)
# Get list of available data for a multiple countries and topics
## Not run:
out_4 <- get_info(
country_names=c("Afghanistan","Zambia"),
topics=c("Elections:LowerHouse:CLEA","Events:PoliticalViolence:GED"))
out_4
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.