Displaying 1 result from an estimated 1 matches for "preciptim".
Did you mean:
preciptime
2011 Oct 25
2
difftime producing NA values in R 2.12.2
R-listers,
I have noticed several posts on issues with difftime producing NA's
but they have been for older versions of R. Here's the issue
associated with difftime that I am dealing with in R 2.12.2.
> preciptime = strptime("01/10/2007 14:00",format="%m/%d/%Y %H:%M")
> class(preciptime)
[1] "POSIXlt" "POSIXt"
> # Now using difftime, this is what happens
>
> difftime(strptime("03/11/2007 01:00",format="%m/%d/%Y %H:%M"),preciptime,units...