R/check_length.R

Defines functions check_length

Documented in check_length

#'
#' This function checks that the vector-like objects x, y are of equal length.
#' @param x vector-like object
#' @param y vector-like object
#'
#'

check_length <- function(x, y) {
  if (length(x) != length(y)) {
    stop("Error: x, y unequal lengths")
  }
  else {
    #pass
  }
}

Try the zipR package in your browser

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

zipR documentation built on May 1, 2019, 7:06 p.m.