Download data from Quality of Government Institute Basic data at http://www.qog.pol.gu.se/data/

read_qog(which.data = "basic", data.type = "time-series", data.dir = NULL,
  file.format = "csv", cache = TRUE, update_cache = FALSE)

Arguments

which.data

A string. Specify the name of the QoG data set to retrieve. Currently available "basic", "standard", "oecd" or "social_policy".

data.type

A string. Specify whether you want cross-sectional or time-series QoG data set to retrieve. Currently available "cross-sectional" or "time-series".

data.dir

a path to a cache directory. The directory have to exist. The NULL (default) uses and creates 'rqog' directory in the temporary directory from tempdir.

file.format

A string. Specify the file format you want to download and import. Currently available "csv","dta", "sav" or "xlsx".

cache

a logical whether to do caching. Default is TRUE.

update_cache

a locigal whether to update cache. Default is FALSE.

Value

data.frame

Examples

# dat <- read_qog(which.data = "basic", data.dir="data")