Re: [R] read.spss (package foreign) and SPSS 15.0 files

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Fri 06 Apr 2007 - 19:18:19 GMT

Charilaos Skiadas wrote:
> On Apr 6, 2007, at 12:32 PM, John Kane wrote:
>

>> I have simply moved to exporting the SPSS file to a
>> delimited file and loading it. Unfortunately I'm
>> losing all the labelling which can be time-consuming
>> to redo.    Some of the data has something like 10
>> categories for a variable.

>
> I save as csv format all the time, and it offers me a choice to use
> the labels instead of the corresponding numbers. So you shouldn't
> have to lose that labelling.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College

That's a different point. The great advantage of read.spss (and the spss.get function in Hmisc that uses it) is that long variable labels are supported in addition to variable names. That's why I like getting SPSS or Stata files instead of csv files. I'm going to enhance csv.get in Hmisc to allow a row number to be specified, to contain long variable labels.

Frank

>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Apr 07 05:25:35 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 01:30:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.