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
}

Try the beautier package in your browser

Any scripts or data that you put into this service are public.

beautier documentation built on Nov. 2, 2023, 5:08 p.m.