Skip to contents

Calls morie_otis_rplace / morie_otis_astcmb / morie_otis_volat / morie_otis_rctrnd / morie_otis_otdesc on df for one fiscal year and returns a named list of morie_otis_result objects. If out_dir is supplied, each result is also written to disk as a .txt (format()) and a .json (jsonlite::toJSON when available, else dput).

Usage

morie_otis_all_analyses(df, year, sex = NULL, out_dir = NULL)

Arguments

df

OTIS data.frame.

year

Integer fiscal year.

sex

Optional gender filter passed to morie_otis_rplace.

out_dir

Optional output directory. When non-NULL the directory is created if missing.

Value

Named list of morie_otis_results.

Details

CRAN-safe: with out_dir = NULL (default) no files are written.

Examples

if (FALSE) { # \dontrun{
  df <- morie_otis_load()
  res <- morie_otis_all_analyses(df, year = 2024)
} # }