> "jim" == jim holtman writes:
> Is this what you want:
>> aggregate(x$Sim_1986, list(trunc(x$Latitude)), mean)
> Group.1 x 1 82 55.04276 2 83 60.26186 3 84 39.40297 4 85
> 22.12000
>>
You could also use cut to convert Latitude to a factor:
aggregate(x$Sim_1986, cut(
Many thanks for the very useful responses in such a short time. I'm not a
former SAS user - more a naive R user who didn't realise that a sort wasn't
necessary!
Jim, your solution worked really well - thanks.
Thanks again for the great solutions.
Steve
___
Is this what you want:
> aggregate(x$Sim_1986, list(trunc(x$Latitude)), mean)
Group.1x
1 82 55.04276
2 83 60.26186
3 84 39.40297
4 85 22.12000
>
On Thu, Apr 30, 2009 at 11:50 AM, Steve Murray wrote:
>
> Dear all,
>
> I have a data frame of three columns, which I ha
Dear all,
I have a data frame of three columns, which I have sorted by Latitude as
follows:
> test2[60:80,]
Latitude Longitude Sim_1986
6194885.25-29.25 2.175345
6195785.25-28.75 8.750486
6196785.25-28.25 33.569305
6197785.25-27.75 23.702572
6198885.
4 matches
Mail list logo