R/helpers.R

Defines functions check_same

check_same <- function(e1, e2) {
  if (length(e1@eif) != length(e2@eif)) {
    stop("Length of @eif must be the same")
  }

  if (all(e1@weights != e2@weights)) {
    stop("@weights must be the same")
  }

  if (all(e1@id != e2@id)) {
    stop("@id must be the same")
  }

  invisible()
}

Try the ife package in your browser

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

ife documentation built on Aug. 19, 2025, 1:12 a.m.