Read SPSS file into R

后端 未结 14 1738
情歌与酒
情歌与酒 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 15:12

    The read.spss seems to be outdated a little bit, so I used package called memisc.

    To get this to work do this:

    install.packages("memisc")
    data <- as.data.set(spss.system.file('yourfile.sav'))
    

提交回复
热议问题