R: Exact Date and Duration Arithmetic on an Annual Grid

# Exact Date and Duration Arithmetic on an Annual Grid

## Documentation for package ‘datey’ version 0.1.1

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

A C D E F I M N O P S T V misc

## -- A --

all_collapsed | Properties of a 'datey_interval'
all_collapsed.datey_interval | Properties of a 'datey_interval'
all_collapsed.default | Properties of a 'datey_interval'
all_of_time | 'All of time' — the maximum valid 'datey_interval'
all_proper | Properties of a 'datey_interval'
all_proper.datey_interval | Properties of a 'datey_interval'
all_proper.default | Properties of a 'datey_interval'
anyNA.datey | Whether 'datey', 'durationy' or 'datey_interval' are NA
anyNA.datey_interval | Whether 'datey', 'durationy' or 'datey_interval' are NA
anyNA.durationy | Whether 'datey', 'durationy' or 'datey_interval' are NA
any_collapsed | Properties of a 'datey_interval'
any_collapsed.datey_interval | Properties of a 'datey_interval'
any_collapsed.default | Properties of a 'datey_interval'
as.character.datey | Format or print a 'datey'
as.character.datey_interval | Format or print a 'datey_interval'
as.character.durationy | Format or print a 'durationy'
as.double.datey | Convert a 'datey' to calendar years (including fractional part)
as.double.durationy | Convert a 'durationy' to duration in years
as.integer.datey | Convert a 'datey' to calendar years (including fractional part)
as.integer.durationy | Convert a 'durationy' to duration in years
as_years_datey | Convert a 'datey' to calendar years (including fractional part)
as_years_durationy | Convert a 'durationy' to duration in years

## -- C --

c.datey | Combine multiple 'datey', 'durationy' or 'datey_interval' vectors
c.datey_interval | Combine multiple 'datey', 'durationy' or 'datey_interval' vectors
c.durationy | Combine multiple 'datey', 'durationy' or 'datey_interval' vectors
combine | Combine multiple 'datey', 'durationy' or 'datey_interval' vectors

## -- D --

datey | Create a 'datey'
datey.character | Create a 'datey'
datey.Date | Create a 'datey'
datey.datey | Create a 'datey'
datey.default | Create a 'datey'
datey.double | Create a 'datey'
datey.integer | Create a 'datey'
datey.POSIXct | Create a 'datey'
datey.POSIXlt | Create a 'datey'
datey_components | Get year, month, day or day_fraction breakdown of a 'datey'
datey_interval | Create a 'datey_interval'
datey_interval.datey | Create a 'datey_interval'
datey_interval.datey_interval | Create a 'datey_interval'
datey_interval.default | Create a 'datey_interval'
datey_interval.double | Create a 'datey_interval'
datey_interval.integer | Create a 'datey_interval'
datey_interval.logical | Create a 'datey_interval'
durationy | Create a 'durationy' from an annual duration
durationy.character | Create a 'durationy' from an annual duration
durationy.datey_interval | Create a 'durationy' from an annual duration
durationy.default | Create a 'durationy' from an annual duration
durationy.double | Create a 'durationy' from an annual duration
durationy.durationy | Create a 'durationy' from an annual duration
durationy.integer | Create a 'durationy' from an annual duration

## -- E --

end_day | Create a 'datey'

## -- F --

format.datey | Format or print a 'datey'
format.datey_interval | Format or print a 'datey_interval'
format.durationy | Format or print a 'durationy'

## -- I --

integer_constants | Integer constants
interval_includes | Whether a 'datey_interval' includes a 'datey'
interval_nature | Properties of a 'datey_interval'
interval_properties | Get the start, end or duration of a 'datey_interval'
is.na.datey | Whether 'datey', 'durationy' or 'datey_interval' are NA
is.na.datey_interval | Whether 'datey', 'durationy' or 'datey_interval' are NA
is.na.durationy | Whether 'datey', 'durationy' or 'datey_interval' are NA
is_collapsed | Properties of a 'datey_interval'
is_collapsed.datey_interval | Properties of a 'datey_interval'
is_collapsed.default | Properties of a 'datey_interval'
is_datey | Is 'x' a 'datey', 'durationy' or 'datey_interval'?
is_datey_interval | Is 'x' a 'datey', 'durationy' or 'datey_interval'?
is_durationy | Is 'x' a 'datey', 'durationy' or 'datey_interval'?
is_leap_year | Is 'x' a leap year?
is_leap_year.Date | Is 'x' a leap year?
is_leap_year.datey | Is 'x' a leap year?
is_leap_year.default | Is 'x' a leap year?
is_leap_year.double | Is 'x' a leap year?
is_leap_year.integer | Is 'x' a leap year?
is_leap_year.POSIXct | Is 'x' a leap year?
is_leap_year.POSIXlt | Is 'x' a leap year?
is_mid_day | Is a 'datey' the start (or end) or middle of a day?
is_NA | Whether 'datey', 'durationy' or 'datey_interval' are NA
is_proper | Properties of a 'datey_interval'
is_proper.datey_interval | Properties of a 'datey_interval'
is_proper.default | Properties of a 'datey_interval'
is_start_day | Is a 'datey' the start (or end) or middle of a day?
is_type | Is 'x' a 'datey', 'durationy' or 'datey_interval'?
is_xxx_day | Is a 'datey' the start (or end) or middle of a day?

## -- M --

max_min | Minimum, maximum or range of 'datey' or 'durationy'
mean | Mean value of 'datey' or 'durationy'
mean.datey | Mean value of 'datey' or 'durationy'
mean.datey_interval | Mean value of 'datey' or 'durationy'
mean.durationy | Mean value of 'datey' or 'durationy'
mid_day | Create a 'datey'

## -- N --

NAs | The 'datey', 'durationy' and 'datey_interval' versions of NA
NA_datey_ | The 'datey', 'durationy' and 'datey_interval' versions of NA
NA_datey_interval_ | The 'datey', 'durationy' and 'datey_interval' versions of NA
NA_durationy_ | The 'datey', 'durationy' and 'datey_interval' versions of NA

## -- O --

ops | Operators for 'datey', 'durationy' and 'datey_interval'
Ops.datey_type | Operators for 'datey', 'durationy' and 'datey_interval'

## -- P --

print.datey | Format or print a 'datey'
print.datey_interval | Format or print a 'datey_interval'
print.durationy | Format or print a 'durationy'

## -- S --

seq | Create 'datey' or 'durationy' sequence vector
seq.datey | Create 'datey' or 'durationy' sequence vector
seq.durationy | Create 'datey' or 'durationy' sequence vector
start_day | Create a 'datey'
subset | Subset 'datey', 'durationy' or 'datey_interval' vectors
Summary.datey | Minimum, maximum or range of 'datey' or 'durationy'
Summary.datey_interval | Minimum, maximum or range of 'datey' or 'durationy'
Summary.durationy | Minimum, maximum or range of 'datey' or 'durationy'

## -- T --

text_from_datey | Format or print a 'datey'
text_from_datey_interval | Format or print a 'datey_interval'
text_from_durationy | Format or print a 'durationy'
to_ymdf | Get year, month, day or day_fraction breakdown of a 'datey'

## -- V --

valid_duration_years_max | Integer constants
valid_years_end | Integer constants
valid_years_start | Integer constants

## -- misc --

$.datey | Get year, month, day or day_fraction breakdown of a 'datey'
$.datey_interval | Get the start, end or duration of a 'datey_interval'
%includes% | Whether a 'datey_interval' includes a 'datey'
%to% | Create a 'datey_interval'
[.datey | Subset 'datey', 'durationy' or 'datey_interval' vectors
[.datey_interval | Subset 'datey', 'durationy' or 'datey_interval' vectors
[.durationy | Subset 'datey', 'durationy' or 'datey_interval' vectors
[<-.datey | Subset 'datey', 'durationy' or 'datey_interval' vectors
[<-.datey_interval | Subset 'datey', 'durationy' or 'datey_interval' vectors
[<-.durationy | Subset 'datey', 'durationy' or 'datey_interval' vectors