Re: [R] Latitudinal mean of values in a data frame

2012-12-11 Thread S.N.Manohar
Thank you very much for all those solutions. On 11-12-12, David Winsemius wrote: > > On Dec 11, 2012, at 3:17 AM, Swagath Navin wrote: > > >Dear all, > > > >I have a big file containing latitude points(-10 to 80) and corresponding > >values. > >Example data > > > >Lat=c(69.48134, 69.49439, 69

Re: [R] Latitudinal mean of values in a data frame

2012-12-11 Thread David Winsemius
On Dec 11, 2012, at 3:17 AM, Swagath Navin wrote: Dear all, I have a big file containing latitude points(-10 to 80) and corresponding values. Example data Lat=c(69.48134, 69.49439, 69.50736, 69.52026, 69.52438, 69.53308, 69.53746, 69.54365, 69.54582, 69.6884, 69.69272, 69.998, 70.00055,

Re: [R] Latitudinal mean of values in a data frame

2012-12-11 Thread arun
: Re: [R] Latitudinal mean of values in a data frame Hello, again. Another possibility is aggregate(Value, by = list(floor(Lat)), FUN = mean) Rui Barradas Em 11-12-2012 11:17, Swagath Navin escreveu: > Dear all, > > I have a big file containing latitude points(-10 to 80) and corr

Re: [R] Latitudinal mean of values in a data frame

2012-12-11 Thread Rui Barradas
Hello, again. Another possibility is aggregate(Value, by = list(floor(Lat)), FUN = mean) Rui Barradas Em 11-12-2012 11:17, Swagath Navin escreveu: Dear all, I have a big file containing latitude points(-10 to 80) and corresponding values. Example data Lat=c(69.48134, 69.49439, 69.50736, 69

Re: [R] Latitudinal mean of values in a data frame

2012-12-11 Thread Rui Barradas
Hello, Try the following. tapply(Value, floor(Lat), FUN = mean) 6970 0.1805381 0.1617072 Hope this helps, Rui Barradas Em 11-12-2012 11:17, Swagath Navin escreveu: Dear all, I have a big file containing latitude points(-10 to 80) and corresponding values. Example data Lat=