int_start

0th

Percentile

Access and change the start date of an interval

Note that changing the start date of an interval will change the length of the interval, since the end date will remain the same.

Usage
int_start(int)
Arguments
int
An interval object
Value

  • A POSIXct date object when used as an accessor. Nothing when used as a settor

See Also

int_end, int_shift, int_flip, int_length

Aliases
  • int_start
  • int_start<-
Examples
int <- new_interval(ymd("2001-01-01"), ymd("2002-01-01"))
# 2001-01-01 UTC--2002-01-01 UTC
int_start(int)
# "2001-01-01 UTC"
int_start(int) <- ymd("2001-06-01")
int
# 2001-06-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.