Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b24b1e
commit 737b547
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
} | ||
|