View source: R/examine_metadata.R
examine_metadata | R Documentation |
This function provides an overview of the metadata available in a CES dataset, showing which variables have labels, value labels, and other attributes.
examine_metadata(data, show_labels = FALSE, variable_pattern = NULL)
data |
A CES dataset, typically retrieved using |
show_labels |
Logical indicating whether to show the actual labels. Default is FALSE. |
variable_pattern |
Optional regular expression to filter variables. |
A data.frame with metadata information for each variable.
# Get CES data with preserved metadata
ces_2019 <- get_ces("2019", preserve_metadata = TRUE)
# Examine metadata for all variables
metadata_overview <- examine_metadata(ces_2019)
# Examine metadata for voting-related variables, showing labels
voting_metadata <- examine_metadata(ces_2019,
show_labels = TRUE,
variable_pattern = "vote|ballot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.