Displaying 1 result from an estimated 1 matches for "booking_date".
2011 Sep 15
1
difftime on vector
How can I apply difftime to a vector of sorted dates? I can do this just
fine with diff, but difftime doesn't seem to take in a vector.
> diff(r$BOOKING_DATE)
Works. Great!
> difftime(r$MY_DATE, units="days")
Error in as.POSIXct(time2) : argument "time2" is missing, with no default
Thanks,
Bradford
[[alternative HTML version deleted]]