clean_ces_data: Clean Canadian Election Study Dataset

View source: R/get_ces.R

clean_ces_dataR Documentation

Clean Canadian Election Study Dataset

Description

This function performs cleaning operations on CES data, including recoding variables, converting factors, and standardizing column names.

Usage

clean_ces_data(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 standardized variables.


ces documentation built on Aug. 29, 2025, 5:26 p.m.