read_qog | R Documentation |
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",
year = 2023,
data_dir = NULL,
file_format = "csv",
download_only = FALSE,
cache = TRUE,
update_cache = FALSE
)
which_data |
A string. Specify the name of the QoG data set to retrieve. Currently available |
data_type |
A string. Specify whether you want cross-sectional or time-series QoG data set to retrieve. Currently available |
year |
numeric. Specify the year of the dataset. Year refers to the publication year of the dataset not the year of a particular data point. Default |
data_dir |
a path to a cache directory. The directory have to exist.
The |
file_format |
A string. Specify the file format you want to download and import. Currently available |
download_only |
a logical whether to only download and save the dataset and skip importing in R. Default is |
cache |
a logical whether to do caching. Default is |
update_cache |
a locigal whether to update cache. Default is |
data.frame
Markus Kainu <markus.kainu(at)kapsi.fi>
# dat <- read_qog(which_data = "basic", year = 2019, data_dir="data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.