## Not run:
# # import SPSS data set. uses haven's read function
# # by default
# mydat <- read_spss("my_spss_data.sav")
#
# # use foreign's read function
# mydat <- read_spss("my_spss_data.sav",
# enc = "UTF-8",
# option = "foreign")
#
# # use haven's read function, convert atomic to factor
# mydat <- read_spss("my_spss_data.sav", atomic.to.fac = TRUE)
#
# # retrieve variable labels
# mydat.var <- get_label(mydat)
#
# # retrieve value labels
# mydat.val <- get_labels(mydat)## End(Not run)
Run the code above in your browser using DataLab