title: Trying to read an SPSS file in to R. Turns into all NAs. Errors inside
body: <p>I am trying to read an SPSS file in to R using read.spss. It is a very large file (The World Values Survey), with about 67k entries.</p>
  
  <p>Here is the code, with the errors:</p>
  
  <pre><code>&gt; library(foreign)
  &gt; wvs = read.spss("C:/wvs2005_v20090901a.sav",to.data.frame=TRUE)
  Warning messages:
  1: In read.spss("C:/wvs2005_v20090901a.sav", to.data.frame = TRUE) :
  C:/wvs2005_v20090901a.sav: Unrecognized record type 7, subtype 8 encountered in system file
  2: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  3: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  4: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  5: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  6: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  7: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  8: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  9: In `levels&lt;-`(`*tmp*`, value = c("Missing; Unknown", "Not asked",  :
  duplicated levels will not be allowed in factors anymore
  </code></pre>
  
  <p>Any insight is much appreciated.</p>