EthanSansom / phinterval

Set Operations for Time Intervals with Gaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phinterval

phinterval provides a <phinterval> (say “potentially-holey-interval”) class for working with time intervals that potentially contain gaps such as:

  • An individual’s employment or educational history.

  • A meeting schedule for the work day.

  • All of the Monday’s in a month.

Sometimes it is useful to consider these holey time-spans as a single observation rather than a collection of observations. phinterval provides tools to work with such observations.

The implementation of, and conventions used by, this package borrow heavily from the lubridate <interval> class. The <phinterval> class is meant to be a super-class of <interval>, meaning that the two classes are often interchangeable.

Installation

⚠️ This package is still under construction. ⚠️

You can install the development version of phinterval from GitHub with:

# install.packages("devtools")
devtools::install_github("EthanSansom/phinterval")

About

Set Operations for Time Intervals with Gaps

License:GNU General Public License v3.0


Languages

Language:R 100.0%