examine_metadata {ces} | R Documentation |
Examine Variable Metadata in a CES Dataset
Description
This function provides an overview of the metadata available in a CES dataset, showing which variables have labels, value labels, and other attributes.
Usage
examine_metadata(data, show_labels = FALSE, variable_pattern = NULL)
Arguments
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. |
Value
A data.frame with metadata information for each variable.
Examples
# 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")
[Package ces version 0.1.0 Index]