clio_get: Execute a data query to clio-infra

Description Usage Arguments Value See Also Examples

View source: R/clio_get.R

Description

This function is used to execute a query to clio-infra, and returns a data.frame containing the required variables, countries and years specified by the user.

Usage

1
clio_get(variables, countries, from, to, list = FALSE, mergetype = full_join)

Arguments

variables

The variables you want to obtain (provided to you by Clio::clio_overview())

countries

If left empty, all countries.

from

Start year

to

End year

list

Defaults to FALSE. If TRUE, returns a list of each variable

mergetype

Defaults to full_join. Can be set to inner_join, outer_join, left_join, etc.

Value

a data.frame containing the required variables, countries and years specified by the user.

See Also

Clio::clio_get_cat() if you want to extract data by categories instead of by variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
clio_get(c("infant mortality", "zinc production"))

clio_get(c("biodiversity - naturalness", "xecutive Constraints  (XCONST)"),
from = 1850, to = 1900,
countries = c("Armenia", "Azerbaijan"))

clio_get(c("Zinc production", "Gold production"),
from = 1800, to = 1920,
countries = c("Botswana", "Zimbabwe",
             mergetype = inner_join))

basm92/Clio documentation built on July 15, 2020, 4:05 a.m.