int_standardize

0th

Percentile

Ensures all intervals in an interval object are positive

If an interval is not positive, int_standardize flips it so that it retains its endpoints but becomes positive.

Usage
int_standardize(int)
Arguments
int
an Interval object
Aliases
  • int_standardize
Examples
int <- new_interval(ymd("2002-01-01"), ymd("2001-01-01"))
# 2002-01-01 UTC--2001-01-01 UTC
int_standardize(int)
# 2001-01-01 UTC--2002-01-01 UTC
Documentation reproduced from package lubridate, version 1.2.0, License: GPL

Community examples

Looks like there are no examples yet.