[R] Getting codebook data into R
rmailbox at justemail.net
rmailbox at justemail.net
Mon Feb 13 20:00:46 CET 2012
This is how I get a whole SPSS data files into R. You specifically asked about the codebook, so this may not be exactly what you are after.
spssFileInfo <- spss.system.file ( file = "path to my SPSS file" )
spssDataSet <- as.data.set ( spssFileInfo)
spssDataFrame <- as.data.frame ( spssDataSet )
(Not tested. Adapted from working code.)
memisc documentation has more info about doing this and how it works.
eRic
----- Original message -----
From: "barny" <garyb.davies at btinternet.com>
To: r-help at r-project.org
Date: Sat, 11 Feb 2012 10:04:16 -0800 (PST)
Subject: Re: [R] Getting codebook data into R
Hi Eric - after seeing the difficulty of inputting this kind of data into R I
decided to use your method. It was rather painless using PSPP to do what I
wanted - however, how do I now create an SPSS file and then use the memisc
package to read it in?
--
View this message in context: http://r.789695.n4.nabble.com/Getting-codebook-data-into-R-tp4374331p4379433.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list