Displaying 20 results from an estimated 10000 matches similar to: "SPSS to R conversion "error in iconv...""
2008 Dec 14
1
re ad.spss (foreign) conflict with SPSS 17 files.
SPSS seems to have changed its default datafile format, resulting in issues
for read.spss(). In Windows this results in a warning, in Debian the import
completely fails:
Debian (R version 2.8.0 (2008-10-20) i486-pc-linux-gnu, foreign_0.8-29)
> read.spss("/home/jeroen/samples/Tomato.sav")
Error in iconv(names(rval), cp, "") :
unsupported conversion from 'CP65001'
2009 Feb 17
2
spss-file problem with foreign 0.8-32
Hi,
after updating to foreign version 0.8-32, I experienced the following error
when I tried to load a SPSS file:
Fehler in inherits(x, "factor") : objekt "cp" nicht gefunden
Zus?tzlich: Warning message:
In read.spss("***l.sav", use.value.labels = TRUE, to.data.frame = TRUE) :
***.sav: File-indicated character representation code (1252) looks like a
Windows
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
I'm using R 2.8.1 on Ubuntu 8.10. I'm writing partly to ask what's
wrong, partly to tell other users who search that there is a work
around.
The General Social Survey is a long standing series of surveys
provided by NORC (National Opinion Research Center). I have
downloaded some years of the survey data in SPSS format (here's the
site:
2010 Jan 12
1
read.spss: option "to.data.frame" and string variables
Dear R-users,
I am using R version 2.10.1 and package foreign version 0.8-39 under windows.
When reading .sav-Files (PASW Statistics 18.0.1) containing string variables, these are automatically converted to factors when using option "to.data.frame = TRUE" (see example below).
It's clear to me why this happens (the default behaviour of a call to as.data.frame). But this is not
2008 Aug 01
1
importing explicitly declared missing values in read.spss (foreign)
There is a problem when importing an spss-file containing explicitly declared
missing values in R using the read.spss function from the foreign package.
I'm not sure these problems are the same in every version of spss, I am
using the latest version 16.0.2.
I included http://www.nabble.com/file/p18776776/missingdata.sav
missingdata.sav and
2003 Aug 10
1
read.spss doesn't work anymore
A couple of months ago, probably using an older version of R, R used to
run the following code just fine:
library("foreign")
data.exp1 <- as.data.frame(read.spss("dataDef.sav"))
Issuing the same commands now (after starting R using --vanilla), gives
me the following behavior:
> library("foreign")
> x <- read.spss("dataDef.sav")
Error
2009 Feb 07
2
reading SPSS .sav files (PR#13509)
Full_Name: Roger Newton
Version: 2.8.1
OS: windows 2000
Submission from: (NULL) (80.176.228.157)
I have an elderly version of SPSS (version 11) which I still use. R Version
2.6.1 would, and still will, read SPSS *.sav files produced by SPSS version 11.
R version 2.8.1 which I installed two days ago (05/02/09) reports an error and
shuts down when trying to read SPSS version 11 *.sav files using
2013 May 20
1
help with 'cem' for r 2.14.2
Hello,
I am trying to use R for propensity score matching in SPSS.? I have version 21 of SPSS and I downloaded R 2.14.2 as directed as well as the R Essentials plug-in.? I have run a test for R and it appears to be running correctly.? I then downloaded psmatching3 and have tried to use the PS matching dialog in SPSS.? However, I continue to run into problems as SPSS reports that there is no
2007 Apr 05
1
read.spss (package foreign) and SPSS 15.0 files
Hello,
does anyone have experience with reading SPSS Version 15.0 files into R (version 2.4.1, WinXP)?
I have long been sucessfully reading SPSS files with read.spss from the wonderful foreign package, but somehow after upgrading from SPSS14 to SPSS15 I seem to have problems.
Trying a simple example, where test.sav is a SPSS 15.0 data file consisting of x1=c(1,2,3) and
2010 Sep 28
2
Problema con read.spss
Hola,
Tengo problemas a la hora de cargar un archivo que originalmente está en
SPSS.
Trabajo con Fedora y uso R mediante el plugin Rgedit en gedit.
Además en Fedora no tengo SPSS, sino PSPP
Para cargar el archivo he probado estas dos cosas (escribo también el
mensaje de error que me genera R):
>library_(foreign)
>read.spss("guille.sav",to.data.frame = T)
Error en
2012 Dec 03
2
How to read SPSS file in R
Dear R-users,
I have som troubles with .sav file. How is it possible for us R-users to
read SPSS files. I know that is possible,
I tried the following:
> library(foreign)
> Corp<-read.spss("/Users/kama/Analysis/Corporation.sav", header=TRUE,
> sep=",")
Error in read.spss("/Users/kama/Analysis/Corporation.sav", header = TRUE, :
unused
2008 Jul 29
1
Problem reading a particular file with read.spss()
Hi All:
I have a seemingly typical SPSS data file with 219 rows and 486
variables. When I attempt to read this file into R with read.spss() in
the foreign package, I consistently get a "crash". This is the sequence
of events:
> library(foreign)
> sessionInfo()
R version 2.7.1 Patched (2008-07-24 r46120)
i386-pc-mingw32
locale:
LC_COLLATE=English_United
2009 Jan 07
1
Importing data from SPSS with Arabic encoding
Dear R-users,
I'm facing a problem with the import of data in R. I have a sav file that, I presume, uses some Arabic encoding (but I don't know which one) and I would like to read it with R. When I use the function read.spss (I also tried spss.get(Hmisc)), I get the following message:
> read.spss("Hhld.sav")
Erreur dans read.spss("Hhld.sav") :
erreur ? la lecture
2010 Jun 18
1
Read SPSS v 18 .sav file
Hi,
I repeatedly get an error when trying to read an SPSS v. 18 .sav file into R.
> require(foreign)
Loading required package: foreign
> femaleSPSS.dat <- read.spss("female-04-02-2010.sav")
Warning message:
In read.spss("female-04-02-2010.sav") :
female-04-02-2010.sav: Unrecognized record type 7, subtype 18 encountered in system file
>
However, read.spss works
2008 Apr 13
1
SPSS to R Data file conversion
I wrote a little routine to convert multiple spss data files (as data frames) to R data files. The code is as follows:
#
list=dir(pattern=".sav")
library(foreign)
for (i in 1:length(list)){
# The saved data frame will be dat
dat=read.spss(list[i],to.data.frame=TRUE)
name=substring(list[i],1,nchar(list[i])-4)
rname=paste("../R/",name,".rda",sep="")
# This
2010 Jul 16
1
re ading SPSS .sav files (PR#13509)
Sir/Madam,
Installed in my computer is the Version 2.9.1(2009-06-26) of R. I have a
SPSS.sav file produced by SPSS Version 17.
>install.('foreign')
>library(foreign)
<- read.spss("f:/sme.sav",use.value.labels=FALSE)
Warning message:
In read.spss("f:/sme.sav", use.value.labels = FALSE) :
f:/sme.sav: Unrecognized record type 7, subtype 18
2010 Oct 18
2
read.spss warning message (Unrecognized record type 7, subtype 18 encountered in system file)
Hello Everyone,
Trying to help someone recover the contents of an SPSS.sav file using read.spss. This seemed to work well but produced a warning message. My code and the warning are displayed below.
Spent some time looking for previous questions about this warning. Found a lot of questions posted but wasn't able to figure out what the problem is.
Is there anyone out there who can explain
2007 Feb 16
1
SPSS and library(foreign)
Hi,
I have a valid SPSS .sav file (which I can open happily in SPSS v11 on
Windows XP).
Opening it in R2.41 on Linux we get this message :-
> HSE3023 <- read.spss("HSE.sav")
Error in read.spss("HSE.sav") :
error reading system-file header
In addition: Warning message: HSE.sav:
Variable X234 indicates variable label of invalid length 256
Now variable X234 has indeed a
2006 Jul 31
3
read.spss 'error reading system-file header'
When I try to import an spss sav file with read.spss() I am getting the
following error
'Error in read.spss("X:\\xxxx.sav") : error reading system-file header'
and the import process is aborted.
I have tried in v. 2.3.0 and 2.3.1
The sav-file loads without problems in spss v14 I have tried saving in
older spss v7 but are getting the same result.
The read.spss() has other
2007 Apr 05
1
some SPSS 15 files wont open in R 2.4.0
Trying to open some SPSS .sav files (saved with SPSS 15) gives the following:
read.spss('/data/big/unzipped_ukda/seh3767/3767SPSS_570D6A086C9A1B0636F13255F25A58C1/prgrp95.sav')
Error in
read.spss("/data/big/unzipped_ukda/seh3767/3767SPSS_570D6A086C9A1B0636F13255F25A58C1/prgrp95.sav"):
error reading system-file header
In addition: Warning message: