I have two large data sets in SPSS which I am trying to merge the files using R - (for test purpose I included only two variables with 4 cases) and below is the R syntax that I am using for merging the files.
data <- read.spss("D:/R_merge/Data.sav")
data1 <- read.spss("D:/R_merge/Data1.sav")
mydata <- smartbind(data, data1)
write.foreign(mydata, "D:/R_merge/data.txt", "D:/R_merge/data.sps", package="SPSS")
The issue is: when I export the data from R to SPSS the value labels (titles) are not shown in the final merged SPSS data set - only the variable name is shown at the title. I have read the forum but there was no direct syntax provided for this issue.