clean_ces_data_preserve_metadata {ces}R Documentation

Clean Canadian Election Study Dataset while Preserving Metadata

Description

This function performs minimal cleaning operations on CES data to maximize preservation of variable metadata, including labels and attributes.

Usage

clean_ces_data_preserve_metadata(data, year, language = "en")

Arguments

data

A tibble or data.frame containing raw CES data.

year

A character string indicating the year of the CES data.

language

A character string indicating the language for labels ("en" or "fr").

Value

A cleaned tibble with preserved metadata.


[Package ces version 0.1.0 Index]