Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added documentation for int_diff

  • Loading branch information...
commit 737b5477cc42e759ed2a4646e3c62f88d1719660 1 parent 0b24b1e
@garrettgman garrettgman authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 man/int_diff.Rd
25 man/int_diff.Rd
@@ -0,0 +1,25 @@
+\title{Extract the intervals within a vector of date-times}
+ int_diff(times)
+ \item{times}{A vector of POSIXct, POSIXlt or Date class
+ date-times}
+ An interval object that contains the n-1 intervals
+ between the n date-tiwe in times
+ int_diff returns the intervals that occur between the
+ elements of a vector of date-times. int_diff is similar
+ to the POSIXt and Date methods of \code{\link{diff}}, but
+ returns an interval object instead of a difftime object.
+dates <- now() + days(1:10)
Please sign in to comment.
Something went wrong with that request. Please try again.