Re: [R] SPSS and R ? do they like each other?

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Thu 12 Jan 2006 - 03:09:13 EST

Michael Reinecke wrote:
> ... and is there also such a nice tool (like spss.get) for exporting
> data frames to SPSS? write.table does not keep the data frame labels -
> neither did the other exporting tools that I found.
> ...

library(foreign)
?write.foreign

write.foreign(df, datafile, codefile, package = "SPSS")

   The codefile generated is SPSS syntax which will read the datafile and create SPSS variable and value labels.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jan 12 03:17:19 2006

This archive was generated by hypermail 2.1.8 : Thu 12 Jan 2006 - 06:09:38 EST