search for: finaldata1

Displaying 6 results from an estimated 6 matches for "finaldata1".

Did you mean: finaldata
2018 May 01
2
how can I convert a long to wide matrix?
Hi R user, I was trying to convert a long matrix to wide? I have an example and would like to get a table (FinalData1): FinalData1 B1 B2 id_X "A" "B" id_Y "A" "B" but I got the following table using the following code. FinalData1 B1 B2 id_X "A" "A" id_Y "A" "B" the code and the example data I used are...
2018 May 01
2
how can I convert a long to wide matrix?
...ot;EventDate","SITE")) > > Jim > > > On Wed, May 2, 2018 at 8:24 AM, Marna Wagley <marna.wagley at gmail.com> > wrote: > > Hi R user, > > I was trying to convert a long matrix to wide? I have an example and > would > > like to get a table (FinalData1): > > > > > > FinalData1 > > B1 B2 > > id_X "A" "B" > > id_Y "A" "B" > > > > but I got the following table using the following code. > > > > FinalData1 > > > > B1...
2018 May 01
0
how can I convert a long to wide matrix?
...ch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE")) Jim On Wed, May 2, 2018 at 8:24 AM, Marna Wagley <marna.wagley at gmail.com> wrote: > Hi R user, > I was trying to convert a long matrix to wide? I have an example and would > like to get a table (FinalData1): > > > FinalData1 > B1 B2 > id_X "A" "B" > id_Y "A" "B" > > but I got the following table using the following code. > > FinalData1 > > B1 B2 > > id_X "A" "A" > > id...
2018 May 01
2
how can I convert a long to wide matrix?
Hi Jim, The data set is correct. I took two readings from the "SITE A" within a short time interval, therefore I want to take the first value if there are repeated within a same group of "timeGroup". Therefore I wanted following FinalData1 B1 B2 id_X "A" "B" id_Y "A" "B" thanks, On Tue, May 1, 2018 at 4:05 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > Hi Marna, > I think this is due to having three rows for id_X and only two for > id_Y. The function cr...
2018 May 01
0
how can I convert a long to wide matrix?
...; >> Jim >> >> >> On Wed, May 2, 2018 at 8:24 AM, Marna Wagley <marna.wagley at gmail.com> >> wrote: >> > Hi R user, >> > I was trying to convert a long matrix to wide? I have an example and >> > would >> > like to get a table (FinalData1): >> > >> > >> > FinalData1 >> > B1 B2 >> > id_X "A" "B" >> > id_Y "A" "B" >> > >> > but I got the following table using the following code. >> > >> &gt...
2018 May 01
0
how can I convert a long to wide matrix?
....com> wrote: > Hi Jim, > The data set is correct. I took two readings from the "SITE A" within a > short time interval, therefore I want to take the first value if there are > repeated within a same group of "timeGroup". > Therefore I wanted following > > FinalData1 > > B1 B2 > id_X "A" "B" > id_Y "A" "B" > > thanks, > > > > On Tue, May 1, 2018 at 4:05 PM, Jim Lemon <drjimlemon at gmail.com> wrote: >> >> Hi Marna, >> I think this is due to having t...