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 Zahn wrote:
>> The reason
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 could be
>
> 1957
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 0.6
NANA
>
> -
> David L Carlson
> Department of Anthropology
> Texas A&M University
> College Station, TX 77840-4352
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas
&
:17 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
19
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
1974
6 matches
Mail list logo