Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created November 14, 2016 22:01
Show Gist options
  • Save manashmandal/6ee4475c036b6bd0742fb2a99995a81e to your computer and use it in GitHub Desktop.
Save manashmandal/6ee4475c036b6bd0742fb2a99995a81e to your computer and use it in GitHub Desktop.
Load SPSS and Export CSV with variable names
require('foreign')
spss_data <- read.spss('file.sav', use.value.labels = TRUE)
write.csv(spss_data, 'out_file.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment