Skip to contents

Generate AIR dataset (Australian Immunisation Register)

Usage

generate_air(
  spine = NULL,
  seed = 42L,
  years = 2015L:2024L,
  output_dir = NULL,
  format = c("parquet", "csv"),
  return_data = TRUE
)

Arguments

spine

Data.frame from generate_spine() or NULL. If NULL, the spine is loaded from the active run directory.

seed

Integer. Random seed.

years

Integer vector. Years the register covers. The observation window and the age-gated adult programme doses are taken from it rather than from a fixed reference year.

output_dir

Character or NULL. Base output directory. If NULL, uses get_data_path().

format

Character. Currently parquet only. Passing "csv" is accepted by the argument matcher but rejected at runtime.

return_data

Logical. If TRUE, returns generated data.frames in addition to writing parquet.

Dataset and variable information

The Department of Health AIR website gives information about this dataset. Use dataset_info("AIR") for dataset information. Use variable_info("AIR") for variables, sources, value support, and topic tags.