Re: [R] Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue 27 Jul 2004 - 01:28:53 EST

On Mon, 26 Jul 2004, [iso-8859-1] Karl Knoblick wrote:

> Hallo!
>
> I read SPSS data in the following way:
>
> library(Hmisc)
> library(foreign)
> dat<-spss.get("surv_abb.sav")
>
> In R1.9.1 I got the message:
> "Error in all(arg == choices) : Object "typeDate" not
> found"
>
> In R1.8.0 the same script works fine.
>
> Does anybody know a possibilty to read a SPSS file
> under R1.9.1?
>

YOu should just be able to use read.spss in the "foreign" package.

        -thomas



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 27 01:57:55 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:39:07 EST