Description Usage Arguments Value Examples
View source: R/extractor_functions.R
Extracts variables in the V-Dem dataset (version 11), by using a filter expression that is used to extract variable names from the V-Dem coddebook (vdem_codebook)
1 2 3 4 5 6 7 8 9 |
... |
A sequence of filter expressions, separated by commas, suitable for use with dplyr::filter, operating on the column names of vdem_codebook. See examples. |
include_uncertainty |
Whether to return the uncertainty measurements for
the selected variables ( |
include_sd |
Whether to return the standard deviation for the selected
variables ( |
include_osp |
Whether to return variables available in the original
scale ( |
include_ord |
Whether to return variables available in an ordinal scale
( |
include_nr |
Whether to return the number of coders for the variable
( |
include_external |
Whether to return variables marked "external", i.e.,
coming from an external source rather than V-Dem ( |
A tibble with the V-Dem country identifiers, other state system identifiers, plus the desired variables.
1 2 3 4 | # All in section 2 of the codebook except component indexes
extract_vdem_filter(section == 2, !grepl("component index", label))
# All variables inclued in release 2 of the dataset
extract_vdem_filter(grepl("2(,|$)|1-11", data_release))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.