Skip to contents

Return the ICAO AIRAC id for a date (or a vector of)

Usage

airac(date)

Arguments

date

a (vector of) date(s) (or a representation of it understood by lubridate::ymd())

Value

the ICAO AIRAC ids, i.e. '2301'; NA for missing or unparseable dates

Examples

airac('2027-01-30')
#> [1] "2701"
airac(c('2024-01-25', '2027-01-30', NA))
#> [1] "2401" "2701" NA