Re: [R] Help with reshape/reshape2 needed

2017-07-05 Thread Jim Lemon
Oops, that should have been: stretch_df(tadf,"V1","V2") Jim On Thu, Jul 6, 2017 at 8:38 AM, Jim Lemon wrote: > Hi Tom, > Or perhaps: > > #assume the data frame is named "tadf" > library(prettyR) > stretch_df(tadf,1,2) > > Jim > > > On Thu, Jul 6, 2017 at 6:50 AM, Ista

Re: [R] Help with reshape/reshape2 needed

2017-07-05 Thread Jim Lemon
Hi Tom, Or perhaps: #assume the data frame is named "tadf" library(prettyR) stretch_df(tadf,1,2) Jim On Thu, Jul 6, 2017 at 6:50 AM, Ista Zahn wrote: > The reason it doesn't work easily with reshape/reshape2 is that the > order of the rows is not determined. Your answer

Re: [R] Help with reshape/reshape2 needed

2017-07-05 Thread Ista Zahn
The reason it doesn't work easily with reshape/reshape2 is that the order of the rows is not determined. Your answer could be 1957 1958 ... 1985 1986 0.8625000 0.750 ... 0.7307692 0.2375 0.0733945 0.6435644 ...NA 0.05769231 0.5096154NA ...NA

Re: [R] Help with reshape/reshape2 needed

2017-07-05 Thread Thomas Adams
9231NA NANA > > - > David L Carlson > Department of Anthropology > Texas A University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of

Re: [R] Help with reshape/reshape2 needed

2017-07-05 Thread David L Carlson
PM To: r-help@r-project.org Subject: [R] Help with reshape/reshape2 needed Hi all: I'm struggling with getting my data re-formatted using functions in reshape/reshape2 to get from: 1957 0.86250 1958 0.75000 1959 0.3 1960 0.28750 1963 0.67500 1964 0.93750 1965 0.02500

[R] Help with reshape/reshape2 needed

2017-07-05 Thread Thomas Adams
Hi all: I'm struggling with getting my data re-formatted using functions in reshape/reshape2 to get from: 1957 0.86250 1958 0.75000 1959 0.3 1960 0.28750 1963 0.67500 1964 0.93750 1965 0.02500 1966 0.38750 1969 0.08750 1970 0.27500 1973 0.5