R/get_core_non_event_args.R

Defines functions get_core_non_event_args

get_core_non_event_args <- function(all_args, twig_type) {

  if ("decision_twig" %in% twig_type){
    core_args <- c("decision", "outcome")
  } else if ("markov_twig" %in% twig_type){
    core_args <- c("state", "cycle", "decision")
  }
  core_args <- core_args[core_args %in% all_args]
  return(core_args)
}

Try the twig package in your browser

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

twig documentation built on April 12, 2025, 2:08 a.m.