Package 'airac'

Title: Helper functions to get ICAO AIRAC ID and intervals as used in Aeronautical Information Services and Publications
Description: Derive AIRAC ID and relevant intervals both as used internationally and by the data services of the European Network Manager, i.e. the CFMU AIRAC.
Authors: Enrico Spinielli [aut, cre] (ORCID: <https://orcid.org/0000-0001-8584-9131>), EUROCONTROL [cph, fnd]
Maintainer: Enrico Spinielli <[email protected]>
License: MIT + file LICENSE
Version: 0.3.0
Built: 2026-12-05 20:31:47 UTC
Source: https://github.com/eurocontrol/airac

Help Index


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

Description

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

See Also

Other airac: airac_epoch(), airac_interval(), airac_year_epoch(), cfmu_airac(), cfmu_airac_epoch(), cfmu_airac_epoch_number(), cfmu_airac_interval()

Examples

airac('2027-01-30')
airac(c('2024-01-25', '2027-01-30', NA))

AIRAC epoch as from ICAO Doc 8126

Description

AIRAC epoch is defined in section 2.6.2 b) of ICAO Doc 8126.

Usage

airac_epoch()

Value

the AIRAC epoch according to ICAO scheme

See Also

Other airac: airac(), airac_interval(), airac_year_epoch(), cfmu_airac(), cfmu_airac_epoch(), cfmu_airac_epoch_number(), cfmu_airac_interval()

Examples

airac_epoch()

The interval of dates for an (ICAO) AIRAC

Description

The interval of dates for an (ICAO) AIRAC

Usage

airac_interval(airac)

Arguments

airac

the ICAO AIRAC, i.e. "1603" for the 3rd AIRAC of 2016

Value

intervals of (28) days covered by the AIRACs in airac; NA for invalid ids

See Also

Other airac: airac(), airac_epoch(), airac_year_epoch(), cfmu_airac(), cfmu_airac_epoch(), cfmu_airac_epoch_number(), cfmu_airac_interval()

Examples

airac_interval("2403")
airac_interval(c("2401", "2314", "bad"))

Return the effective date of the first AIRAC for year year

Description

Return the effective date of the first AIRAC for year year

Usage

airac_year_epoch(year)

Arguments

year

a year (as integer)

Value

the WEF date for the first AIRAC of the year year

See Also

Other airac: airac(), airac_epoch(), airac_interval(), cfmu_airac(), cfmu_airac_epoch(), cfmu_airac_epoch_number(), cfmu_airac_interval()

Examples

airac_year_epoch(2018)

return the CFMU AIRAC cycle number for a date

Description

return the CFMU AIRAC cycle number for a date

Usage

cfmu_airac(date)

Arguments

date

a date

Value

a number indicating the AIRAC cycle according to CFMU scheme

See Also

Other airac: airac(), airac_epoch(), airac_interval(), airac_year_epoch(), cfmu_airac_epoch(), cfmu_airac_epoch_number(), cfmu_airac_interval()

Examples

cfmu_airac('2019-01-30')

The interval of dates for a CFMU AIRAC number

Description

The interval of dates for a CFMU AIRAC number

Usage

cfmu_airac_interval(cfmu_airac)

Arguments

cfmu_airac

an integer vector of CFMU AIRAC numbers, e.g. 441L; NA allowed

Value

an interval of dates (28 days); NA for NA or negative cycle numbers. Non-integer input (including doubles such as 441) is an error.

See Also

Other airac: airac(), airac_epoch(), airac_interval(), airac_year_epoch(), cfmu_airac(), cfmu_airac_epoch(), cfmu_airac_epoch_number()

Examples

cfmu_airac_interval(441L)
cfmu_airac_interval(c(441L, NA, -1L))