You are not logged in.
Hi
I realise this is a bit of a niche question but a search of the forums showed there are a at least some R uses out there and I need a question answering:
I want to import some old data from before my move to linux into R. I have them saved as SPSS .sav files and don't have (or want ) access to SPSS.
I read on http://www.statmethods.net/input/importingdata.html that you can import it with the following:
# save SPSS dataset in trasport format
get file='c:\mydata.sav'.
export outfile='c:\mydata.por'.
# in R
library(Hmisc)
mydata <- spss.get("c:/mydata.por", use.value.labels=TRUE)
# last option converts value labels to R factors
I have the Hmisc library installed but it seems from this I have to convert the .sav file to .por in SPSS before I can import it to R.
Is there anyone that can shine some light on this and, if this is the case, give an alternative method to achieve the same goal?
Any help much appreciated
Offline
I use something like:
library("foreign")
read.spss("file")
Offline
That seems to be what I am looking for.
I will have read about it in the help and try it out.
Thanks
Offline
Moved to Workstation User.
ᶘ ᵒᴥᵒᶅ
Offline