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 1

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 vers

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 t

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 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 the labels to it

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 takes

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 myse

Re: [R] SPSS long variable names

2009-10-14 Thread joris meys
licated too, although I'm not sure on that. 2) data labels can contain spaces (and often do), so they cannot be readily used as variable names in R. Cheers Joris > - Original Message - From: "Orvalho Augusto" > To: "Robert Baer" > Cc: > Sent: Tues

Re: [R] SPSS long variable names

2009-10-14 Thread Robert Baer
uot;Robert Baer" Cc: 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 wrote: I am wondering if there is a patch for the SPSS reading code on the foreign package, in

Re: [R] SPSS long variable names

2009-10-13 Thread Frank E Harrell Jr
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 wrote: From: Orvalho Augusto 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 li

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
gt;>> >>> Caveman >>> >>> >>> On Tue, Oct 13, 2009 at 3:01 PM, John Kane 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 w

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 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 Robert Baer
- Original Message - From: "Robert Baer" To: "Orvalho Augusto" 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 to read

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
t;>> >>> On Tue, Oct 13, 2009 at 3:01 PM, John Kane 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 wrote: >>>> >>>>> From: Orvalho Aug

Re: [R] SPSS long variable names

2009-10-13 Thread joris meys
> >> Caveman >> >> >> On Tue, Oct 13, 2009 at 3:01 PM, John Kane 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 wrote: >>> >>>> From: O

Re: [R] SPSS long variable names

2009-10-13 Thread joris meys
) spss.get may do it but it's been some time since I used it. >> >> --- On Sat, 10/10/09, Orvalho Augusto wrote: >> >>> From: Orvalho Augusto >>> Subject: [R] SPSS long variable names >>> To: r-help@r-project.org >>> Received: Saturday, Oc

Re: [R] SPSS long variable names

2009-10-13 Thread Orvalho Augusto
used it. > > --- On Sat, 10/10/09, Orvalho Augusto wrote: > >> From: Orvalho Augusto >> 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

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 wrote: > From: Orvalho Augusto > Subject: [R] SPSS long variable names > To: r-help@r-project.org > Received: Saturday, October 10, 2009, 12:14 PM > Hello guys I

[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 pro