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

Thomas Lumley tlumley at u.washington.edu
Mon Jul 26 17:28:53 CEST 2004


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




More information about the R-help mailing list