The problem is the limit of 8 characters long on variable
names.[in read.spss??]
I just created a file in SPSS 17 and saved it in standard format (.sav) The
file had four unique variable NAMES which were much longer than 8 characters
(although not 64). I entered two rows of data and saved
Impressive!
PSPP produces the sav fine. The sav file produced by the PSPP is seen
by SPSS (16) with the long names.
I attach my sav produced by the PSPP. And I start to suspect my
foreign package version:
I am using 0.8.26-1 from the r-cran-foreign a Ubuntu 8.10 package. Can
you tell me your
Robert you are right. I updated the foreign package and I can read
long names now
I have checked the changelog and I found that long names reading were
introduced after 0.8.29 while I were using 0.8.26-1.
So I am really sorry guys for this mess. R can read long names.
Caveman
On Thu, Oct
To: Robert Baer rb...@atsu.edu
Cc: r-help@r-project.org
Sent: Tuesday, October 13, 2009 10:39 AM
Subject: Re: [R] SPSS long variable names
No!
That is variable labels.
Caveman
On Tue, Oct 13, 2009 at 4:52 PM, Robert Baer rb...@atsu.edu wrote:
I am wondering if there is a patch for the SPSS
(and often do), so they cannot be
readily used as variable names in R.
Cheers
Joris
- Original Message - From: Orvalho Augusto orvaq...@gmail.com
To: Robert Baer rb...@atsu.edu
Cc: r-help@r-project.org
Sent: Tuesday, October 13, 2009 10:39 AM
Subject: Re: [R] SPSS long variable names
Hi
The .dat file is a tab delimited file with the long variables names on
it. The .sps file has the instructions to read the .dat and place all
the variable and value labels.
The ideia of reading the dat directely is good but I need the labels
placed. Yes I could read the dat file and parese
You could read in the sps file in R with readLines() for example, and
then use the tools for regular expression and substring to find the
label statements. Then you can just use R to add the labels to it,
without having to pass through PSPP.
So you could actually just create an R script that
Ok.
I will try that then.
Caveman
On Wed, Oct 14, 2009 at 6:53 PM, joris meys jorism...@gmail.com wrote:
You could read in the sps file in R with readLines() for example, and
then use the tools for regular expression and substring to find the
label statements. Then you can just use R to add
library(Hmisc) spss.get may do it but it's been some time since I used it.
--- On Sat, 10/10/09, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] SPSS long variable names
To: r-help@r-project.org
Received: Saturday, October 10, 2009, 12:14 PM
since I used it.
--- On Sat, 10/10/09, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] SPSS long variable names
To: r-help@r-project.org
Received: Saturday, October 10, 2009, 12:14 PM
Hello guys I am new to this list and
for R too.
I am
it but it's been some time since I used it.
--- On Sat, 10/10/09, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] SPSS long variable names
To: r-help@r-project.org
Received: Saturday, October 10, 2009, 12:14 PM
Hello guys I am new to this list
, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] SPSS long variable names
To: r-help@r-project.org
Received: Saturday, October 10, 2009, 12:14 PM
Hello guys I am new to this list and
for R too.
I am wondering if there is a patch for the SPSS
- Original Message -
From: Robert Baer rb...@atsu.edu
To: Orvalho Augusto orvaq...@gmail.com
Sent: Tuesday, October 13, 2009 9:52 AM
Subject: Re: [R] SPSS long variable names
I am wondering if there is a patch for the SPSS reading
code on the
foreign package, in order to be able
No!
That is variable labels.
Caveman
On Tue, Oct 13, 2009 at 4:52 PM, Robert Baer rb...@atsu.edu wrote:
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
some time since I used it.
--- On Sat, 10/10/09, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] SPSS long variable names
To: r-help@r-project.org
Received: Saturday, October 10, 2009, 12:14 PM
Hello guys I am new to this list and
for R too
.
Caveman
On Tue, Oct 13, 2009 at 3:01 PM, John Kane jrkrid...@yahoo.ca wrote:
library(Hmisc) spss.get may do it but it's been some time since I used it.
--- On Sat, 10/10/09, Orvalho Augusto orvaq...@gmail.com wrote:
From: Orvalho Augusto orvaq...@gmail.com
Subject: [R] 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
17 matches
Mail list logo