On Sep 15, 2011, at 4:07 PM, Jon Zadra wrote:
> Hi,
>
> I'm having some problems with the aggregate() function in the {stats}
> package, and the documentation doesn't address them.
>
> 1) Why would the first line work, but the second not? According to the help
> file, it accepts a "data=" argu
Hi,
I'm having some problems with the aggregate() function in the {stats}
package, and the documentation doesn't address them.
1) Why would the first line work, but the second not? According to the
help file, it accepts a "data=" argument.
with(tsrc, aggregate(x=DistRatio, by=list(Conditi
artin Elff
> Sent: Friday, February 22, 2008 3:52 AM
> To: r-help@r-project.org
> Subject: Re: [R] Problems with aggregate
>
> I guess it will save you some trouble to give the
> results of 'aggregate' some other name than
> 'min' or 'max', as in
You can use match.fun
x
V1 V2
1 2 3.2
2 15 1.2
3 2 8.4
4 8 9.2
5 7 0.4
min <- aggregate(x, list(x[,1]), min)
min <- aggregate(x, list(x[,1]), match.fun(min))
On 21/02/2008, Mcmahon, Kevin <[EMAIL PROTECTED]> wrote:
> Hello list,
>
>
>
> I'm new to this list, so please forgive my ignoran
I guess it will save you some trouble to give the
results of 'aggregate' some other name than
'min' or 'max', as in
min.humanneph <- aggregate(as.numeric(humanneph[,2]),
list(as.numeric(humanneph[,1])), min)
max.humanneph <- aggregate(as.numeric(humanneph[,2]),
list(as.numeric(hum
Hello list,
I'm new to this list, so please forgive my ignorance. I have searched
R-help for some hints into what might be my problem, but I truly have no
idea where to go from here.
I have an object of approximately 15,000 rows and 2 columns. There are
many duplicates in the first column
6 matches
Mail list logo