Skip to content
/ rqog Public

Download data from the Quality of Government Institute data

License

MIT, MIT licenses found

Licenses found

MIT
LICENCE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

rOpenGov/rqog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Markus Kainu
Sep 12, 2023
5412c24 · Sep 12, 2023
Oct 2, 2021
Apr 16, 2023
Apr 16, 2023
Apr 17, 2023
Apr 16, 2023
Apr 16, 2023
Feb 1, 2022
Feb 1, 2022
Oct 13, 2021
Oct 13, 2021
Apr 16, 2023
Feb 1, 2022
Oct 13, 2021
Feb 2, 2022
Apr 16, 2023
Sep 12, 2023
Apr 16, 2023

Repository files navigation

rqog-package: download data from the Quality of Government Institute data

rOG-badge Lifecycle: maturing CRAN status

Download the latest and archived datasets from the Quality of Government Institute using the function read_qog(). See ?read_qog for help, package vignette for more examples and shiny.vaphana.com/rqog_app for interactive metadata shiny.

Installation

remotes::install_github("ropengov/rqog")

Use

Download data

library(rqog)
dat <- read_qog(which_data = "standard", data_type = "time-series")

Browse metadata

library(rqog)
meta_std_ts_2023[grepl("human development", meta_std_ts_2023$name, ignore.case = TRUE),]
#>          code                    name value label   class
#> 1416  iiag_hd       Human Development    NA  <NA> numeric
#> 1875 undp_hdi Human Development Index    NA  <NA> numeric

Plot an indicator

library(ggplot2)
ggplot(dat[!is.na(dat$undp_hdi),], 
       aes(x = year, y = undp_hdi, color = cname)) + 
  geom_line() + 
  theme(legend.position = "none")

Copyright (C) 2012-2023 Markus Kainu [email protected]. MIT-licence.

Disclaimer

This package is in no way officially related to or endorsed by Quality of Government Institute.