[R] Best option for exporting data frame to SPSS?

Fredrik Karlsson dargosch at gmail.com
Tue Sep 1 17:11:45 CEST 2009


Dear list,

I am leaving my old position and now need to convert my R data frames
into a format that can be used by an SPSS user replacing me, without
running into conversion problems.
The data set consists of strings in UTF8 encoding and values in double
precision floats. The data set is not terribly large, but I had bit
problems getting it into R due to the large number of unfortunate
characters in the strings (', #, " and so on) so I was just wondering
if there is any way to get the data into a SPSS friendly format (other
than tab-separated files) so that a minimum of conversion is done in
between the two systems.
A data base file (SQLite) would be ideal, but unfortunatelly, I don't
think the recieving end would be able to handle it, i.e. get the data
into SPSS.

Sorry for asking this on the list, but I have found lots of
information about getting data safelly _into_ R in the archive, but
far les about exporting data out of R.

Please give me your best tip.

/Fredrik

 --
"Life is like a trumpet - if you don't put anything into it, you don't
get anything out of it."




More information about the R-help mailing list