Skip to content

Access to Canadian Election Study Data

0packages depend
3.2Kdownloads / year
29.2%test coverage
13/13flavors OK

Overview

About

Provides tools to easily access and analyze Canadian Election Study data. The package simplifies the process of downloading, cleaning, and using 'CES' datasets for political science research and analysis. The Canadian Election Study ('CES') has been conducted during federal elections since 1965, surveying Canadians on their political preferences, engagement, and demographics. Data is accessed from multiple sources including the 'Borealis' Data repository https://borealisdata.ca/ and the official 'Canadian Election Study' website https://ces-eec.arts.ubc.ca/. This package is not officially affiliated with the Canadian Election Study, 'Borealis' Data, or the University of British Columbia, and users should cite the original data sources in their work.

Changes in 1.1.0

New data

  • Added the **2025 Canadian Election Study** web survey, retrieved from Harvard Dataverse (doi:10.7910/DVN/2YAQ8D). Access it with get_ces("2025") or get_ces("2025", variant = "web"); the PDF technical report and codebook are available via download_pdf_codebook("2025").
  • Dataset coverage now spans **23 datasets from 1965 to 2025**.

Bug fixes

  • Restored access to the **2015 phone** and **2015 combined** (web/phone) surveys, which had stopped downloading after the original UBC host began returning an HTML bot-protection page to programmatic clients. The 2015 combined survey is now sourced from the Borealis repository, and the 2015 phone survey from a stable mirror, so both download reliably. Downloads also send a standard browser User-Agent (saved and restored on exit) for robustness against such host-side protections. Both datasets match the corresponding cesR package variants exactly (phone: 4,202 x 455, Latin1 encoding; combined: 11,614 x 665).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.5 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 322 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
Help pages
19 (9 internal)includes a package overview page
Examples that run
11%1 run in a plain check · 8 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
5%

Downloads

3.2K
CRAN downloads in the past year
Rank #8,099 · ~9/day · ~270/mo
Daily download trend is not available in this view yet.
44230 days
1.1K90 days
3.2K1 year
Compare downloads with other packages →
Also on103 r2u5 autocran

Repository

4Stars
0Forks
0Open issues
0Open PRs
2Releases
35Commits
1Commit identities
35 commits · Last activity 2026-06-06
Responsiveness
not measured
PracticesBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/laurenceomfoisy/ces on 2026-10-21.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-07-23
    Commits: at least 8 crediting it in the message
Models named in its commits
  • Claude Opus 4.86 commits · Jun 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing ces adds 28 packages (15 with compiled code, 8.2 MB of source tarballs). Heaviest: vctrs 1.0 MB, dplyr 902 KB, rlang 766 KB.

Depends (1)
R >= 3.5
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.1.0 (2025)
Releases (5)

Pick two releases to compare their code metrics.

Package metadata

First published
2025-05-28
Total releases
5 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5
Download size
50 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("ces")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ces version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy