Re: [R] Help with Data Transformation

2011-01-12 Thread Guy Jett
) 946-3340 Direct (925) 457-4168 ITSI Cell gj...@itsi.com -Original Message- From: John Kane [mailto:jrkrid...@yahoo.ca] Sent: Monday, January 10, 2011 4:29 PM To: r-help@r-project.org; Guy Jett Subject: RE: [R] Help with Data Transformation That's fine. Am I correct

Re: [R] Help with Data Transformation

2011-01-12 Thread Dennis Murphy
-4168 ITSI Cell gj...@itsi.com -Original Message- From: John Kane [mailto:jrkrid...@yahoo.ca] Sent: Monday, January 10, 2011 4:29 PM To: r-help@r-project.org; Guy Jett Subject: RE: [R] Help with Data Transformation That's fine. Am I correct that this is the format you want

Re: [R] Help with Data Transformation - RESOLVED

2011-01-12 Thread Guy Jett
: r-help@r-project.org Subject: Re: [R] Help with Data Transformation Hi: This seems like a problem that is well suited for the cast() function in package reshape2. Here's a toy example: library(reshape2) df - data.frame(idnum = rep(101:104, c(3, 2, 4, 3)), lab = unlist(sapply(c

Re: [R] Help with Data Transformation

2011-01-11 Thread ONKELINX, Thierry
Onderwerp: [R] Help with Data Transformation Greetings, I am new to R and am having trouble with parsing a file with the following characteristics: * Individual results for a single sample are written to multiple lines. * First 16 columns are constant from sample to sample

Re: [R] Help with Data Transformation

2011-01-11 Thread Hadley Wickham
The data is initially extracted from an SQL database into Excel, then saved as a tab-delimited text file for use in R. You might also want to look at the SQL packages for R so you can skip this manual step. I'd recommend starting with

[R] Help with Data Transformation

2011-01-10 Thread Guy Jett
Greetings, I am new to R and am having trouble with parsing a file with the following characteristics: * Individual results for a single sample are written to multiple lines. * First 16 columns are constant from sample to sample. * Remaining 10 need to be matched up

Re: [R] Help with Data Transformation

2011-01-10 Thread John Kane
gj...@itsi.com Subject: [R] Help with Data Transformation To: r-help@r-project.org r-help@r-project.org Received: Monday, January 10, 2011, 3:59 PM Greetings, I am new to R and am having trouble with parsing a file with the following characteristics: *         Individual results

Re: [R] Help with Data Transformation

2011-01-10 Thread Guy Jett
Jett gj...@itsi.com Subject: [R] Help with Data Transformation To: r-help@r-project.org r-help@r-project.org Received: Monday, January 10, 2011, 3:59 PM Greetings, I am new to R and am having trouble with parsing a file with the following characteristics: *         Individual results

Re: [R] Help with Data Transformation

2011-01-10 Thread John Kane
] #== --- On Mon, 1/10/11, Guy Jett gj...@itsi.com wrote: From: Guy Jett gj...@itsi.com Subject: RE: [R] Help with Data Transformation To: John Kane jrkrid...@yahoo.ca, r-help@r-project.org r-help@r-project.org Received: Monday, January 10