[R] Import files?
bates at stat.wisc.edu
Sat Feb 5 14:39:49 CET 2000
Mark Lamias <mlamias at isr.umich.edu> writes:
> >How can SPSS files be imported?
> >Fredrik Lundgren
> If you are working with only a few SPSS datasets, I think the easiest thing
> to do is to save the SPSS dataset as a tab-delimited (.dat) file, and then
> read in the tab-delimited dataset using the usual read.table command.
One of the SPSS save formats is described in the documentation for
PSPP, a freely-available SPSS clone (see http://pspp.stat.wisc.edu/).
GPL'd code to parse that format is included in PSPP. It seems that it
would not be overly difficult to modify that code for the `foreign'
package but I can't guarantee when I will have time to work on doing
so. If someone who has a more pressing need wanted to contribute
modifications of that code for R, I would be delighted. For details
on R internal structures see the document Writing R Extensions,
included in the doc/manual directory of R-0.99.0 as R-exts.texi from
which can be produced PDF, info or dvi formats.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help