Re: [R] SPSS long variable names

2009-10-15 Thread Robert Baer
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

Re: [R] SPSS long variable names

2009-10-15 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-15 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-14 Thread Robert Baer
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

Re: [R] SPSS long variable names

2009-10-14 Thread joris meys
(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

Re: [R] SPSS long variable names

2009-10-14 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-14 Thread joris meys
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

Re: [R] SPSS long variable names

2009-10-14 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-13 Thread John Kane
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

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-13 Thread joris meys
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

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
, 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

Re: [R] SPSS long variable names

2009-10-13 Thread Robert Baer
- 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

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
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

Re: [R] SPSS long variable names

2009-10-13 Thread Frank E Harrell Jr
. 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

[R] SPSS long variable names

2009-10-10 Thread Orvalho Augusto
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