[Rd] foreign(read.spss) in rw2000 and re2001beta

From: Kjetil Brinchmann Halvorsen <kjetil_at_acelerate.com>
Date: Sun 07 Nov 2004 - 01:44:43 EST

I encountered something strange with read.spss (package foreign, version 0.7 with R2.0.0 and
version 0.8 with R2.0.1 beta, windows XP)

I made a test file test.sav with SPSS version 11.5.1 containing only one numeric variable, with a value label for one value not occuring in the file. According to ?read.spss this should result in a factor, but it results in all NA. Using the argument
use.value.labels=FALSE, everything is read as expected.

test <- read.spss("test.sav", to.=TRUE)
test > only NA's



Kjetil Halvorsen.

Peace is the most effective weapon of mass construction.
               --  Mahdi Elmandjra

______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Sun Nov 07 01:54:13 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:01:07 EST