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
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
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
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
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
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
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
7 matches
Mail list logo