Set Operations on Time Intervals
Convert a phinterval to a duration
Convert an interval or datetime vector into a phinterval
Create a hole phinterval
Test for empty intervals
Test if the object is a phinterval
Test if the object is a phinterval or interval
Test if the object is a recognized time zone
Count the number of spans in a phinterval
Parameter Descriptions for phinterval Package
Get the gaps in a phinterval as time spans
Compute the length of a phinterval in seconds
Test whether two phintervals overlap
Remove instantaneous time spans from a phinterval
Unnest a phinterval into a data frame
Test whether a datetime or phinterval is within another phinterval
Package options
Accessors for the endpoints of a phinterval
phinterval: Set Operations on Time Intervals
Vectorized set operations
Create a new phinterval
Objects exported from other packages
Squash overlapping intervals into non-overlapping spans
Implements the phinterval vector class for representing time spans that may contain gaps (disjoint intervals) or be empty. This class generalizes the 'lubridate' package's interval class to support vectorized set operations (intersection, union, difference, complement) that always return a valid time span, even when disjoint or empty intervals are created.
Useful links