Re: [R] Stacking data

2009-01-29 Thread hadley wickham
            27193   30949    V2 > > But i have 41 columns (age column + 40 individuals) > I have the following script but an error is thrown up > can anyone help, where am i going wrong > > zz <- read.csv("Filename.csv",strip.white = TRUE) Try this: install.packages("r

Re: [R] Stacking data

2009-01-29 Thread David Winsemius
What does str(zz) tell you? -- David Winsemius On Jan 29, 2009, at 10:31 AM, Amit Patel wrote: Hi I have data in the format below AgeV1 V2 V3 V4 23646 45190 50333 55166 56271 26174 35535 38227 37911 41184 27723 25691 25712 26

[R] Stacking data

2009-01-29 Thread Amit Patel
Hi I have data in the format below      Age            V1       V2      V3       V4    23646         45190 50333 55166 56271    26174         35535 38227 37911 41184    27723          25691 25712 26144 26398 and would like to sort it as fo