Read SPSS file into R

后端 未结 14 1816
情歌与酒
情歌与酒 2020-12-12 14:17

I am trying to learn R and want to bring in an SPSS file, which I can open in SPSS.

I have tried using read.spss from foreign and s

14条回答
  •  被撕碎了的回忆
    2020-12-12 14:52

    Turn your UNICODE in SPSS off

    Open SPSS without any data open and run the code below in your syntax editor

    SET UNICODE OFF.
    

    Open the data set and resave it to remove the Unicode

    read.spss('yourdata.sav', to.data.frame=T) works correctly then

提交回复
热议问题