R/check_lengths.R

Defines functions .check_lengths

#' Check for matching lengths
#'
#' @param x list of arrays
#' @param y list of arrays
#' 
#' @keywords internal
#' @noRd
#'
#' @return boolean, TRUE for error
.check_lengths <- function(x, y) {
  len_x <- lapply(x, length) |> unlist()
  len_y <- lapply(y, length) |> unlist()
  !identical(len_x, len_y)
}

Try the GeoTox package in your browser

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

GeoTox documentation built on April 4, 2025, 5:07 a.m.