R/probe.R

Defines functions probe

probe = function(.x, .p, ...) {
  if (is.logical(.p)) {
    stopifnot(length(.p) == length(.x))
    .p
  } else {
    map_lgl(.x, .p, ...)
  }
}
mlr-org/mlr3misc documentation built on Aug. 21, 2024, 4:06 a.m.