qogfind: Find Quality of Government variables

Description Usage Arguments Value Author(s) References See Also Examples

Description

Function to perform a regex search on QOG variable names and labels. A few labels are missing for strictly cross-sectional variables.

Usage

1
2
  qogfind(..., version = "std", compact = TRUE,
    show = "all")

Arguments

...

keywords or regex phrases passed to grepl.

version

the QOG version to search: either std (the default) or soc.

compact

whether to limit the labels returned to 32 characters. Defaults to TRUE for better console output.

show

which variables to show for years of measurement: cs (cross-sectional), ts (time series), or all (the default).

Value

a data frame containg matching variables, described by their names, labels and years of measurement in the time series (ts) cross-sectional (cs) datasets. The information should match the ranges indicated in the QOG Standard Codebook and QOG Social Policy Codebook.

Author(s)

Francois Briatte f.briatte@ed.ac.uk

References

Svensson, Richard, Stefan Dahlberg, Staffan Kumlin & Bo Rothstein. 2012. The QoG Social Policy Dataset, version 4Apr12. University of Gothenburg: The Quality of Government Institute, http://www.qog.pol.gu.se.

Teorell, Jan, Nicholas Charron, Stefan Dahlberg, Soren Holmberg, Bo Rothstein, Petrus Sundin & Richard Svensson. 2013. The Quality of Government Dataset, version 15May13. University of Gothenburg: The Quality of Government Institute, http://www.qog.pol.gu.se.

See Also

grep, qogdata

Examples

1
2
3
4
5
6
7
8
# QOG Standard search.
qogfind("regime", "institutions")
# QOG Standard search, with regex syntax.
qogfind("public|administration")
# QOG Social Policy search, showing cross-sectional information only.
head(qogfind("^socx", version = "soc", show = "cs", compact = FALSE))
# QOG Standard variables featured only in the cross-sectional version.
qogfind("*")[is.na(qogfind("*")$ts.N), ]

briatte/qogdata documentation built on May 13, 2019, 7:43 a.m.