[R] How to compute time interval?

2011-11-10 Thread Lao Meng
time1 = 2008-03-09 time2 = 2010-9-10 How to compute how many years between time1 and time2? Thanks! best [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] How to compute time interval?

2011-11-10 Thread Lao Meng
t2-t1 is ok,but only can getTime difference of 786 days,but I wanna get the 786 only.How can I do then? Thanks! 2011/11/11 Lao Meng laomen...@gmail.com time1 = 2008-03-09 time2 = 2010-9-10 How to compute how many years between time1 and time2? Thanks! best [[alternative HTML

Re: [R] How to compute time interval?

2011-11-10 Thread Lao Meng
as.numeric() is work Settled! 2011/11/11 Lao Meng laomen...@gmail.com t2-t1 is ok,but only can getTime difference of 786 days,but I wanna get the 786 only.How can I do then? Thanks! 2011/11/11 Lao Meng laomen...@gmail.com time1 = 2008-03-09 time2 = 2010-9-10 How to compute how many

Re: [R] How to compute time interval?

2011-11-10 Thread Jeff Newmiller
You forgot to provide code to work with. There are multiple ways to deal with time in R, but we don't know how you are doing it. --- Jeff NewmillerThe . . Go Live...