Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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
View
25 man/int_diff.Rd
@@ -0,0 +1,25 @@
+\name{int_diff}
+\alias{int_diff}
+\title{Extract the intervals within a vector of date-times}
+\usage{
+ int_diff(times)
+}
+\arguments{
+ \item{times}{A vector of POSIXct, POSIXlt or Date class
+ date-times}
+}
+\value{
+ An interval object that contains the n-1 intervals
+ between the n date-tiwe in times
+}
+\description{
+ 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.
+}
+\examples{
+dates <- now() + days(1:10)
+int_diff(dates)
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.