Re: [R] Mean of dates

2015-04-27 Thread Jue Lin-Ye
On 24 April 2015 at 13:47, Jue Lin-Ye jl.i...@gmail.com wrote: On 24 April 2015 at 12:59, Achim Zeileis achim.zeil...@uibk.ac.at wrote: On Fri, 24 Apr 2015, Jue Lin-Ye wrote: Dear fellow R-help members, If my data is MM DD HH 2015 04 24 01 2015 04 24 02 2015 04 24 06 Where

[R] Mean of dates

2015-04-24 Thread Jue Lin-Ye
Dear fellow R-help members, If my data is MM DD HH 2015 04 24 01 2015 04 24 02 2015 04 24 06 Where : year MM:month DD:day HH: hour How could I calculate the mean of the ISOdatetime(,MM,DD,HH,0,0) of these? Note: I set minutes and seconds to 0, as I don't have data for them.

Re: [R] Mean of dates

2015-04-24 Thread Jue Lin-Ye
On 24 April 2015 at 12:59, Achim Zeileis achim.zeil...@uibk.ac.at wrote: On Fri, 24 Apr 2015, Jue Lin-Ye wrote: Dear fellow R-help members, If my data is MM DD HH 2015 04 24 01 2015 04 24 02 2015 04 24 06 Where : year MM:month DD:day HH: hour How could I calculate

Re: [R] Mean of dates

2015-04-24 Thread Achim Zeileis
On Fri, 24 Apr 2015, Jue Lin-Ye wrote: Dear fellow R-help members, If my data is MM DD HH 2015 04 24 01 2015 04 24 02 2015 04 24 06 Where : year MM:month DD:day HH: hour How could I calculate the mean of the ISOdatetime(,MM,DD,HH,0,0) of these? With the mean() method? On