R/get_update_targets.R

Defines functions get_update_targets

get_update_targets <- function(targets) {
  # Determine which targets are at both their stopping bounds
  done <- targets$current_lower_bounds == targets$stopping_lower_bounds &
    targets$current_upper_bounds == targets$stopping_upper_bounds

  # Return the group names of those targets
  updates <- attr(targets, "target_groups")[!done]

  return(updates)
}

Try the imabc package in your browser

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

imabc documentation built on April 12, 2021, 9:06 a.m.