From kjetil at acelerate.com  Sat Nov  6 15:44:43 2004
From: kjetil at acelerate.com (Kjetil Brinchmann Halvorsen)
Date: Sat Nov  6 15:48:25 2004
Subject: [Rd] foreign(read.spss) in rw2000 and re2001beta
Message-ID: <418CE35B.1000502@acelerate.com>

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

-- 

Kjetil Halvorsen.

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



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