Displaying 20 results from an estimated 20000 matches similar to: "read.spss defaults"
2011 Mar 25
2
library(foreign) read.spss warning
I got the following:
> library(foreign)
> swal = read.spss("swallowing.sav", to.data.frame =TRUE)
Warning message:
In read.spss("swallowing.sav", to.data.frame = TRUE) :
swallowing.sav: Unrecognized record type 7, subtype 21 encountered in system file
>
The bulk of the data seems to read in a usable form, but I'm curious about what might be getting lost
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
2009 Oct 10
7
SPSS long variable names
Hello guys I am new to this list and for R too.
I am wondering if there is a patch for the SPSS reading code on the
foreign package, in order to be able to read long variable names.
Right now read.spss() just trunc the names to 8 characters.
Or if someone could help me on other way:
I have to process everyday a lot of SPSS Syntax Files and Dat files
that come from one system that can only export
2017 Mar 12
1
. Possible issue with R-tools on Windows
I encountered this issue a couple of months ago and resolved it by installing Rtools in the default directory
C:\Rtools, see below for details. I didn't have time to prepare a proper error report and in fact suspected that I may be messing up something.
I tracked down the error by installing from the command line, rather than with install.packages().
On Windows I keep multiple versions of
2008 Jan 18
3
Wishlist- Windows Gui (PR#10589)
Full_Name: Robert Baer
Version: 2.6.1
OS: Windows XP
Submission from: (NULL) (198.209.172.95)
It would be wonderful if the CRAN mirror had an easy way to set a "default CRAN
mirror".
Current behavior is to have to choose a CRAN mirror the first time a package is
installed in a session. The closest mirror site is always the same for me, and
I wouldn't wish to change it unless it
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
2004 Oct 26
1
read.spss Error reading system-file header
Hi Jake,
I had and still have got the same problem. There were two columns in the
data frame which contain just missing values. When I deleted those the
impord seemed to work, but there is still a warning message.
Warning message:
C:\test.sav: Unrecognized record type 7, subtype 13 encountered in
system file.
>
Jake Wegelin wrote:
> Is there any documentation on what kind of SPSS
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
2012 Feb 15
1
read.spss issues
Someone supplied me with a small SPSS datafile that caused a buffer
overflow and then a crash when reading it in R. It seems like a pretty
serious issue to me. Unfortunately I can't supply the dataset at hand
and I have a hard time reproducing it with a toy example. But I found
at least 2 issues that might be related.
The first one is that when the spss dataset has a 'string' variable
2005 Nov 28
1
read.spss problem
Hello,
I am having trouble reading an spss file into R. I have reset my
working directory to the folder where this file is stored. This is
what I've typed into R and the error message I received:
+ getwd()
[1] "/Users/daviacox/Graduate School/PLS 801"
> read.spss("norwil.spss")
Error in read.spss("norwil.spss") : error reading portable-file
dictionary
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 Nov 24
2
how to read .sps (SPSS file extension)?
Hi everyone,
I'm trying to import .sps (SPSS portable file) file.
the read.spss function (library foreign) doesn't allow to import such files.
should I import in spss and then save as sav file? there is not other
solutions available?
what I mostly like from spss file is that they have variable labels.
want is really wish to keep are the variable.labels from the spss file; so,
if there is a
2004 Mar 03
2
read.spss and time/date information
I don't use SPSS but following through on your detective work
can provide the likely answer.
First note that both date numbers are evenly divisible by the number
of seconds in a day, i.e. 24*60*60. This suggests that these numbers
are seconds since some origin.
Since we know "2003/02/11" corresponds to 13264300800 we deduce that
the origin must be
spss.orig <-
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
2004 Mar 12
6
read.spss
Hi,
I would like to read a spss file in R.
When i type read.spss("...")
Comes the error: couldn't find function "read.spss"
What shall i do?
Margarida
[[alternative HTML version deleted]]
2011 Oct 11
4
need help on read.spss
Hi,
I have one doubt about one of the parameter of 'read.spss()' from
'foreign' package.
Here is the syntax :-
read.spss ( file,
use.value.labels = TRUE,
to.data.frame = FALSE,
max.value.labels = Inf,
trim.factor.names = FALSE,
trim_values = TRUE,
reencode = NA,
use.missings = to.data.frame )
In above syntax when I pass *'to.data.frame=
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
2004 Jul 26
3
Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)
Hallo!
I read SPSS data in the following way:
library(Hmisc)
library(foreign)
dat<-spss.get("surv_abb.sav")
In R1.9.1 I got the message:
"Error in all(arg == choices) : Object "typeDate" not
found"
In R1.8.0 the same script works fine.
Does anybody know a possibilty to read a SPSS file
under R1.9.1?
Thanks!
Karl
2004 Nov 06
3
foreign(read.spss) in rw2000 and re2001beta
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
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