Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaizemberg/9791322 to your computer and use it in GitHub Desktop.
Save aaizemberg/9791322 to your computer and use it in GitHub Desktop.
1. read spss --> 2. export csv
## cargando la librería 'foreign' que tiene el 'read.spss'
library(foreign)
## cambiando el directorio
setwd("<path a los archivos .sav>")
## leyendo los archivos .sav
ind = read.spss("individual_t213.sav")
hog = read.spss("hogar_t213.sav")
## exportando a CSV
write.csv(ind, file = "ind.csv")
write.csv(hog, file = "hog.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment