Reproducible Retrieval of Pew Research Center Datasets in R
pewdata
is an R package that provides reproducible, programmatic access to survey datasets from the Pew Research Center.
To install:
install.packages("pewdata")
if (!require(remotes)) install.packages("remotes")
remotes::install_github("fsolt/pewdata")
Note that pewdata
depends on the Chrome Dev browser; if you don’t already have it installed on your machine, get it here.
pewdata
also depends on having a working installation of rJava
. Helpful hints for Mac users and for Windows users.
For more details, check out the vignette.