R/get_prob_funs.R

Defines functions get_prob_funs

get_prob_funs <- function(twig_obj) {

  events <- retrieve_layer_by_type(twig_obj, type = "event")

  all_probs <- unlist(lapply(events, function(x) x$probs))

  unique_probs <- unique(all_probs[!all_probs %in% c('leftover', "complement")])

  filter_functions(unique_probs)
}

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.