R/utils_logic.R

Defines functions if_any

if_any <- function(condition, true, false) {
  if (any(condition)) {
    true
  } else {
    false
  }
}

Try the pmrm package in your browser

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

pmrm documentation built on March 12, 2026, 5:07 p.m.