[R] Trying to avoid loop structure

2010-09-29 Thread Mathieu Beaulieu
Doesn't work - if statement do not accept double conditions structure (y[-1] < x < y) and I should put an else statement - but i'm stuck there. I have the feeling I should look into lapply but it doesn't seem like lapply works with "if" statements. Any tips

[R] aggregating values at discreet irregular time intervals into hourly values

2009-08-18 Thread Mathieu Beaulieu
are not aggregated by hour. I would appreciate any cue or help. Thank you Mathieu Beaulieu, Soil, Water & Environment Laboratory Institute for Resources, Environment and Sustainability University of British-Columbia 429-2202 Main Mall, Vanc