search for: sav

Displaying 20 results from an estimated 232 matches for "sav".

Did you mean: save
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
...National Opinion Research Center). I have downloaded some years of the survey data in SPSS format (here's the site: http://www.norc.org/GSS+Website/Download/SPSS+Format/). When I try to import using foreign, I get an error like so: > library(foreign) > dat <- read.spss("gss2006.sav", to.data.frame=T, trim.factor.names=T) Error in inherits(x, "factor") : object "cp" not found In addition: Warning messages: 1: In read.spss("gss2006.sav", to.data.frame = T, trim.factor.names = T) : gss2006.sav: File contains duplicate label for value 99.9 for...
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 the read.spss function in package foreign. R version 2.8.1 will read *.sav files produced by SPSS version 13. The prob...
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' to '' In addition: Warning messages: 1: In read.spss("/home/jeroen/samples/Tomato.sav") : /home/jeroen/samples/Tomato.sav: File-indicated character representation code (65001)...
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 in read.spss("dataDef.sav") : Calloc could not allocate (-2147483648 of 1) memory >...
2006 Sep 29
3
What is wrong with this input
...to figure out why I'm getting this error. The output is copied right off the screen. Notice how in some cases the back slash is missing. In other cases, it can't read a file that I know is there. Thanks in advance > library(foreign) > hrout <- read.spss("c:\\hrab200.sav") Error in read.spss("c:\\hrab200.sav") : unable to open file > library(foreign) > hrout <- read.spss("C:\Documents and Settings\David Kaplan\My Documents\Baseball\Baseball Research\hr time series paper\new time series hr paper\hrab200.sav") Error in read.spss(...
2010 May 25
1
Merging dataframe with list
I often read SPSS system files (*.sav) into R using the 'read.spss' function from the 'foreign' library. To retain all the meta data, i.e. 'variable labels', I call the function like this: test.sav <- read.spss('http://www.cdc.gov/healthyYouth/shpps/2006/spss/envs2006.sav', to.data.frame=FALSE, u...
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...
2010 Sep 28
2
Problema con read.spss
...chivo 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 read.spss("guille.sav", to.data.frame = T) : unable to open file: 'No existe el fichero o el directorio' > read.spss("/home/guillermo/Escritorio/guille.sav",to.data.frame = T) Error en read.spss("/home/guillermo/Escritorio/gu...
2009 Nov 12
0
Reading .sav (SPSS) files.
Hi, I used the method read.spss() in library(foreign) to read a .sav file using commands. >library(foreign) >data.sav <- read.spss(''masterfile.sav'') >mydat <- as.data.frame(data.sav) It''s throwing some warnings.. ---------------------------------------------------------------------------- ----------------------...
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...
2002 Dec 04
2
problem with load('http://....') (PR#2344)
Full_Name: Frank Harrell Version: 1.6.1 OS: RedHat 8.0 Linux Submission from: (NULL) (128.143.108.90) I get an error when trying to load a URL that contains a file that was saved using save(object, compress=TRUE): > load('http://hesweb1.med.virginia.edu/biostat/s/data/sav/kprats.sav') Error in gzfile(file, "rb") : unable to open connection In addition: Warning message: cannot open compressed file `http://hesweb1.med.virginia.edu/biostat/s/data/sav/kp...
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/Corpor...
2012 May 09
2
Memoria de R y bucles for
...gun R... un vector de 31,5 Mb... y no lo quiere abrir... ¿cuál es el límite? y segundo.... para evitar el error por falta de memoria.... tengo segmentada la base de datos por años... peeeero no me deja meter el fichero en el bucle, porque dice que no existe... es decir... si mis archivos son a1999.sav a2000.sav .....a2009.sav y lo meto dentro de un bucle desde 1999 a 2009: for (j in 1999:2009){ datos.j<-read.spss("aj.sav",to.data.frame= TRUE) attach(datos.j)} me dice que aj.sav no existe... y si los abro "manualmente" y después lo meto en el bucle: datos.1999<-read.spss...
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") : er...
2003 Nov 04
5
read.spss Error reading system-file header
Is there any documentation on what kind of SPSS file can and cannot be read by read.spss? Alternatively, how can one modify or "clean" an SPSS file to make it readable by read.spss? What properties must a *.sav file before read.spss can read it? The file in this example is 270KB, with 5 rows and 173 columns. I have no trouble reading larger files with read.spss, so it's not merely a size problem. I have no difficulty opening the file in SPSS. I also have no trouble getting read.spss to read a dummy...
2008 Dec 24
1
Using SPSS Labels
I am trying to import a SPSS.sav file into R. The attached file is not technically the file I am trying to import, but does replicate my problem. The actual file is much too large to attach. No matter what I do, I can not get R (base or Hmisc) to apply the value labels in the .sav file to the dataframe created in R. Here's the...
2008 Aug 01
1
importing explicitly declared missing values in read.spss (foreign)
...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 http://www.nabble.com/file/p18776776/frequencies.jpg frequencies.jpg as an example. The data contains 3 types of missing data: 2 are explicitly declared as a missing-value ('8' = NA and '9' = NAP), the third type are the system missings. When this file is impo...
2006 Apr 16
3
Reading SPSS .sav files
Greetings, How to I read in SPSS .sav files into R. Thank you. David ===================================== David Kaplan, PhD Professor of Education School of Education University of Delaware Newark DE 19716 Voice: 302-831-8696 Fax: 302-831-4110 ema...
2007 Apr 05
1
read.spss (package foreign) and SPSS 15.0 files
...one 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 x2=c("a","b","c"), I get this: > read.spss(file = "C:\\temp\\test.sav") Fehler in read.spss(file = "C:\\temp\\test.sav") : error reading system-file header Zus?tzlich: Warning messag...
2003 Jun 09
1
questions about nls
Dear R users, I am new in R and I want to use the nls package to analyze some experimental data. The data is in the attached file "data". It is the response "Sav" measured at different "C0". Basically, the "C0" is a function of C1, K2, and r, and the "Sav" is a function of C0, C1, K2, and r. The math equations are shown in the attached file"equations". The parameters K2 and r are the physical properties I want...