Re: [R] Replacing for loop with tapply!?

2005-06-12 Thread Sander Oom
s for your help, >> >>Sander. >> >>Dimitris Rizopoulos wrote: >>>for the maximum you could use something like: >>> >>>ind[, 1] <- apply(mat, 2, max) >>> >>>I hope it helps. >>> >>>Best, >>>Dimitris >>

Re: [R] Replacing for loop with tapply!?

2005-06-11 Thread Petr Pikal
Centre > > School of Public Health > > Catholic University of Leuven > > > > Address: Kapucijnenvoer 35, Leuven, Belgium > > Tel: +32/16/336899 > > Fax: +32/16/337015 > > Web: http://www.med.kuleuven.ac.be/biostat/ > > http://www.student.kuleuven.ac.be/~m0390867/dimit

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Adaikalavan Ramasamy
gt; Biostatistical Centre > > School of Public Health > > Catholic University of Leuven > > > > Address: Kapucijnenvoer 35, Leuven, Belgium > > Tel: +32/16/336899 > > Fax: +32/16/337015 > > Web: http://www.med.kuleuven.ac.be/biostat/ > > http://ww

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Kjetil Brinchmann Halvorsen
Sander Oom wrote: >Dear all, > >We have a large data set with temperature data for weather stations >across the globe (15000 stations). > >For each station, we need to calculate the number of days a certain >temperature is exceeded. > >So far we used the following S code, where mat88 is a matrix

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Sander Oom
uven.ac.be/~m0390867/dimitris.htm > > > > - Original Message - > From: "Sander Oom" <[EMAIL PROTECTED]> > To: "Dimitris Rizopoulos" <[EMAIL PROTECTED]> > Cc: > Sent: Friday, June 10, 2005 12:10 PM > Subject: Re: [R] Replacing fo

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Dimitris Rizopoulos
. >> >> Best, >> Dimitris >> >> >> Dimitris Rizopoulos >> Ph.D. Student >> Biostatistical Centre >> School of Public Health >> Catholic University of Leuven >> >> Address: Kapucijnenvoer 35, Leuven, Belgium >> Tel: +32/16/

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Sander Oom
w.med.kuleuven.ac.be/biostat/ > http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm > > > - Original Message - > From: "Sander Oom" <[EMAIL PROTECTED]> > To: > Sent: Friday, June 10, 2005 10:50 AM > Subject: [R] Replacing for loop with tapply!?

Re: [R] Replacing for loop with tapply!?

2005-06-10 Thread Dimitris Rizopoulos
ac.be/~m0390867/dimitris.htm - Original Message - From: "Sander Oom" <[EMAIL PROTECTED]> To: Sent: Friday, June 10, 2005 10:50 AM Subject: [R] Replacing for loop with tapply!? > Dear all, > > We have a large data set with temperature data for weather sta

[R] Replacing for loop with tapply!?

2005-06-10 Thread Sander Oom
Dear all, We have a large data set with temperature data for weather stations across the globe (15000 stations). For each station, we need to calculate the number of days a certain temperature is exceeded. So far we used the following S code, where mat88 is a matrix containing rows of 365 dai