Datasets of the CEO (Centre d'Estudis d'Opinio) for Opinion Polls in Catalonia

Easy and convenient access to the datasets of the "Centre d'Estudis d'Opinio", the Catalan institution for polling and public opinion. The package retrieves microdata directly from the open data platform of the Generalitat de Catalunya and returns it in a tidy format.


CEOdata

Easy and convenient access to the datasets / microdata of the "Centre d'Estudis d'Opinió", the Catalan institution for polling and public opinion. The package uses the data stored in the open data platform of the Generalitat de Catalunya and returns it in a tidy format (tibble).

The main function, CEOdata() can return either:

  1. An accumulated microdata series (identified by series), or
  2. A single study dataset (identified by reo)

Installation

To install from GitHub (development version), run:

install.packages("remotes")
remotes::install_github("ceopinio/CEOdata")

Basic usage

1. Accumulated microdata series

List available accumulated series:

CEOaccumulated_meta()

Load the default accumulated series ("BOP_presencial")

d <- CEOdata()

Load a specific accumulated series

d_longi <- CEOdata(series = "Longitudinal")

2. Individual studies (REO)

You can inspect the catalogue of individual studies using:

CEOmeta()

And load the microdata of a specific study by REO code:

CEOdata(reo = "1145")

By default, SPSS labelled variables are converted into R factors. To keep the original haven-labelled format:

CEOdata(reo = "1145", raw = TRUE)

Vignettes

To access the package vignettes, please use:

vignette('using_CEOdata')
vignette('working_with_survey_data_using_the_CEOdata_package')

Report bugs, request improvements, ask questions or provide ideas at the issues page.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CEOdata")

1.4.0 by Joel Ardiaca, 7 months ago


https://ceo.gencat.cat/ca/inici/, https://github.com/ceopinio/CEOdata/


Report a bug at https://github.com/ceopinio/CEOdata/issues/


Browse source code at https://github.com/cran/CEOdata


Authors: Xavier Fernández-i-Marín [aut] (ORCID: , Joel Ardiaca [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports tibble, haven, dplyr, urltools, stringr, jsonlite, lubridate

Suggests knitr, ggplot2, tidyr, curl, rmarkdown, vtable, compareGroups


See at CRAN