-
From: Martin Batholdy
To: "r-help@r-project.org"
Cc:
Sent: Friday, January 11, 2013 10:07 AM
Subject: [R] aggregate data.frame based on column class
Hi,
When using the aggregate function to aggregate a data.frame by one or more
grouping variables I often have the problem, that I want t
3 10:07 AM
Subject: [R] aggregate data.frame based on column class
Hi,
When using the aggregate function to aggregate a data.frame by one or more
grouping variables I often have the problem, that I want the mean for some
numeric variables but the unique value for factor variables.
So for example in
Please see in line.
On Fri, Jan 11, 2013 at 10:07 AM, Martin Batholdy
wrote:
> Hi,
>
> When using the aggregate function to aggregate a data.frame by one or more
> grouping variables I often have the problem, that I want the mean for some
> numeric variables but the unique value for factor vari
Hi,
When using the aggregate function to aggregate a data.frame by one or more
grouping variables I often have the problem, that I want the mean for some
numeric variables but the unique value for factor variables.
So for example in this data-frame:
data <- data.frame(x = rnorm(10,1,2), group
Tena koe Alfredo
?merge
HTH ...
Peter Alspach
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Alfredo
> Alessandrini
> Sent: Tuesday, 10 November 2009 1:16 p.m.
> To: r-help@r-project.org
> S
Hi,
I've two data.frame: ind_comp and dati_area
> ind_comp
INDEXindice
1 1 0.3081856
2 2 0.1368007
3 3 0.1290952
4 4 0.2905484
5 5 0.2686706
6 6 0.1122784
7 7 0.4493264
8 8 0.1932665
9 9 0.1982783
1011 0.3724666
> dati_area
X_COORD
6 matches
Mail list logo