Re: [R] evaluate the daily mean with date in "POSIXct" "POSIXt" class

2016-06-07 Thread Stefano Sofia
Thank you Jim, you gave me the right hint. Stefano Da: Jim Lemon [drjimle...@gmail.com] Inviato: martedì 7 giugno 2016 9.39 A: Stefano Sofia Cc: r-help@r-project.org Oggetto: Re: [R] evaluate the daily mean with date in "POSIXct" "POSIXt&quo

Re: [R] evaluate the daily mean with date in "POSIXct" "POSIXt" class

2016-06-07 Thread Jim Lemon
Hi Stefano, I might be missing something, but try this: MteBove<-read.table(text="posix_date posix_time snowtemp 2010-01-19 23:30:00 45 NA 2010-01-20 00:30:00 10 2.7 2010-01-20 03:00:00 45 NA 2010-01-20 03:30:00 44 NA 2010-01-20 04:00:00 44 NA 2010-01-20 04:30:00 44 NA 2010-01-20 05:0

[R] evaluate the daily mean with date in "POSIXct" "POSIXt" class

2016-06-06 Thread Stefano Sofia
Dear R-list users, I have the following data frame, called MteBove: posix_datesnowtemp ... 2010-01-20 23:30:00 45 NA 2010-01-02 00:30:00 10-2.7 2010-01-20 03:00:00 45 NA 2010-01-20 03:30:00 44 NA 2010-01-20 04:00:00 44 NA 2010-01-20 04:30:00 44 NA 2010-01-20 05:00:00 44 NA 2010-01-20 05:30