R/checkZeroDiff.R

Defines functions checkZeroDiff

Documented in checkZeroDiff

#' All zero difference check
#' 
#' Checks if differences dataframe is all zeroes.
#' @param diff Differences dataframe
#' @return Boolean. TRUE if all zeroes, FALSE otherwise.
#' @export
checkZeroDiff <- function(diff){
  if(all(diff$value == 0)) return(TRUE) else return(FALSE)
}

Try the DIETCOST package in your browser

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

DIETCOST documentation built on June 8, 2025, 1:51 p.m.