# NOT RUN {
mpds <- mp_maindataset()
head(mpds)
median(subset(mpds, countryname == "Switzerland")$rile, na.rm = TRUE)
# }
# NOT RUN {
mp_maindataset(download_format = "dta") %>% read_dta() ## requires package haven
# }
Run the code above in your browser using DataLab