tests/testthat/helper-extremum.R

na_wins <- function(out, x, y) {
  is_na <- \(x) is.na(x) & !is.nan(x)
  out[is.na(x) & is.na(y) & (is_na(x) | is_na(y))] <- NA
  out
}

Try the rray package in your browser

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

rray documentation built on Nov. 17, 2026, 5:07 p.m.