R/is_equal_length.R

Defines functions is_equal_length

#' Are R objects of equal length?
#' 
#' @param ... any number of R object
#'
#' @export
is_equal_length <- function(...){
  dots <- list(...)
  for (i in seq_along(dots)){
    if (!identical(length(dots[[1]]), length(dots[[i]]))){
      return(FALSE)
    }
  }
  
  TRUE
}
s-fleck/isit documentation built on Aug. 20, 2019, 8:39 a.m.