# NOT RUN {
# from foreign
library(foreign)
df <- to_labelled(read.spss(
'file.sav',
to.data.frame = FALSE,
use.value.labels = FALSE,
use.missings = FALSE
))
df <- to_labelled(read.dta(
'file.dta',
convert.factors = FALSE
))
# from memisc
library(memisc)
nes1948.por <- UnZip('anes/NES1948.ZIP', 'NES1948.POR', package='memisc')
nes1948 <- spss.portable.file(nes1948.por)
df <- to_labelled(nes1948)
ds <- as.data.set(nes19480)
df <- to_labelled(ds)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab