R/available_algorithms.R

Defines functions available_algorithms

Documented in available_algorithms

#' @title Display Currently Supported Algorithms
#'
#' @description This function prints all (currently) supported and implemented
#' comorbidity mapping, and for each one of those, each supported scoring and
#' weighting algorithm.
#'
#' @export
#'
#' @examples
#' available_algorithms()
available_algorithms <- function() {
  available_mappings <- names(.maps)
  cat("Supported comorbidity mapping algorithms:\n")
  for (m in available_mappings) {
    cat("\t*", m, "\n")
  }
  cat("\nSupported scoring weights algorithms:\n")
  for (m in available_mappings) {
    cat("\t* For", paste0(m, ":"), paste(names(.weights[[m]]), collapse = ", "), "\n")
  }
}

Try the comorbidity package in your browser

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

comorbidity documentation built on May 1, 2023, 5:19 p.m.