Mar 24, 2020

Downloading the European Social Survey from within Stata

clear

// Install rcall command
*github install haghish/rcall, stable

// Clear memory of R session
rcall clear

//#install.packages("essurvey");
rcall: library(essurvey)

// Download data
rcall: download_rounds(c(1, 2, 3, 4, 5, 6, 7, 8, 9), ///
                       ess_email = "REGISTERED E-MAIL ADDRESS HERE", ///
                       output_dir = "C:/Users/User/Desktop/ess/data", ///
                       format = 'stata')