Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-28 Thread Ek Esawi
Thank you again Pikal and Bert. Using lapply, as Bert suggested, was the first thing that i thought of dealing with this question and was mentioned in my original posting. I just did not know how to implement it to get the results/form i want. Below is what i did but could not get it to give me th

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread Bert Gunter
gt; I could construct example data.frames myself but most probably they > would be different from yours and also the result would not be necessary > the same as you expect. > > > > You should post those data frames as output from dput(data) and show us > real desired result from

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread PIKAL Petr
1 0 0 I believe that in your dfn is typo in second row and first column and that with your 3 data.frames the result should be 1. Cheers Petr > -Original Message----- > From: Ek Esawi [mailto:esaw...@gmail.com] > Sent: Tuesday, February 27, 2018 2:54 PM > To: PIKAL Petr ; r-help@r-pr

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread Ek Esawi
bably they would be > different from yours and also the result would not be necessary the same as > you expect. > > You should post those data frames as output from dput(data) and show us real > desired result from those example data frames. > > Cheers > Petr > &g

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-23 Thread PIKAL Petr
r-help-boun...@r-project.org] On Behalf Of Ek Esawi > Sent: Wednesday, February 21, 2018 3:34 AM > To: r-help@r-project.org > Subject: [R] Aggregate over multiple and unequal column length data frames > > Hi All-- > > I have generated several 2 column data frames with variable len

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-20 Thread Bert Gunter
All columns in a data.frame **must** have the same length. So you cannot do this unless empty values are filled with missings (NA's). -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bl

[R] Aggregate over multiple and unequal column length data frames

2018-02-20 Thread Ek Esawi
Hi All-- I have generated several 2 column data frames with variable length. The data frames have the same column names and variable types. I was trying to aggregate over the 2nd column for all the date frames, but could not figure out how. I thought i could make them all of equal length then co