These functions provide access to machine- and human-readable versions of the Codebook (variable descriptions) of the Manifesto Project Main Dataset, as can be found in PDF form under https://manifesto-project.wzb.eu/datasets . As of this manifestoR release only the content-analytical variables (categories) are accessible. Note also that the codebook contains only condensed descriptions of the categories. For detailed information on coding instructions, you can refer to the different handbook versions under https://manifesto-project.wzb.eu/information/documents/handbooks . Only codebooks from version MPDS2017b on are accessible via the API.
mp_codebook(version = "current", cache = TRUE, chapter = "categories")mp_describe_code(
code,
version = "current",
columns = c("title", "description_md"),
print = TRUE
)
mp_view_codebook(version = "current", columns = c("type", "code", "title"))
version of the Manifesto Project Main Dataset for which the codebook is requested. Note that only codebooks from version MPDS2017b on are available via the API/manifestoR. Defaults to "currrent", which fetches the most recent codebook version. Must be formatted as e.g. "MPDS2017b".
Whether result of API call should be cached locally (defaults to TRUE)
Which part of the codebook should be returned. As of this manifestoR release, only the content-analytical variables (parameter value "categories") are accessible via the API.
specific code(s) (as character (vector)) to display information about.
Information to display about each variable. Given as a vector of selected column names from: "type", "domain_code", "domain_name", "code", "variable_name", "title", "description_md", "label"
if TRUE (default), print the information, but as the function also returns invisible a tibble containing the information, you can set print to FALSE for alternative uses.
mp_codebook
returns the codebook as a tibble
, ideal for further automatic processing.
mp_describe_code
pretty prints with information about the requested code(s), ideal for quick interactive use,
but also returns invisible the code(s) information as a tibble
mp_view_codebook
displays a searchable table version of the codebook
in the Viewer pane.