Re: [R] Arranging column data to create plots

2017-07-16 Thread Jeff Newmiller
Correction at the end. On Sun, 16 Jul 2017, Jeff Newmiller wrote: On Sat, 15 Jul 2017, Michael Reed via R-help wrote: Dear All, I need some help arranging data that was imported. It would be helpful if you were to use dput to give us the sample data since you say you have already

Re: [R] Arranging column data to create plots

2017-07-16 Thread Jeff Newmiller
On Sat, 15 Jul 2017, Michael Reed via R-help wrote: Dear All, I need some help arranging data that was imported. It would be helpful if you were to use dput to give us the sample data since you say you have already imported it. The imported data frame looks something like this (the actual

Re: [R] Arranging column data to create plots

2017-07-16 Thread Ulrik Stervbo
Hi Michael, Try gather from the tidyr package HTH Ulrik Michael Reed via R-help schrieb am So., 16. Juli 2017, 10:19: > Dear All, > > I need some help arranging data that was imported. > > The imported data frame looks something like this (the actual file is > huge, so

[R] Arranging column data to create plots

2017-07-16 Thread Michael Reed via R-help
Dear All, I need some help arranging data that was imported. The imported data frame looks something like this (the actual file is huge, so this is example data) DF: IDKey X1 Y1 X2 Y2 X3 Y3 X4 Y4 Name1 21 15 25 10 Name2 15 18 35 24 27 45 Name3 17 21 30 22 15 40 32 55