Learn R Programming

ces (version 1.0.2)

clean_ces_data: 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")

Value

A cleaned tibble with standardized variables.

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").