R/get_clock_models_ids.R

Defines functions get_clock_models_ids

Documented in get_clock_models_ids

#' Collect the IDs of the list of clock models
#' @inheritParams default_params_doc
#' @return IDs of the clock models
#' @author Richèl J.C. Bilderbeek
#' @export
get_clock_models_ids <- function(
  clock_models
) {
  check_true(are_clock_models(clock_models))
  n <- length(clock_models)
  ids <- rep(NA, n)
  for (i in seq_along(clock_models)) {
    ids[i] <- clock_models[[i]]$id
  }
  ids
}
richelbilderbeek/beautier documentation built on April 4, 2024, 12:33 p.m.