phinterval: Set Operations on Time Intervals

Read full text
Authors: Ethan Sansom
Cited by: 0

Abstract

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.

Fields of Study & Subjects

Data Analysis with R Numerical Methods and Algorithms Statistical Methods and Inference

Publication details

Publication date
3 February 2026
Document type
Dataset