Below is my code to convert .sav to a flat file format that works well, my issue raises when I have more than 50 files. Any suggestions on how I can process all the files available in a folder in a loop ?
#load library foreign to read spss
library(foreign)
#set working directory first
setwd("M:\\Files\\Linear Reg")
#read .sav file
data <-read.spss('Computed_Copy.sav', to.data.frame=TRUE,use.value.labels=FALSE)
write.csv(data, "Computed_Copy.csv")
First list all files in your folder with ending .sav