R/BAI.R

Defines functions BAI

Documented in BAI

#' @export
BAI <- function(LUS, Control_LUS){
  if(is.vector(LUS) && length(LUS)==4)
  {
    BAI <- mean(LUS/Control_LUS)
    return(BAI)
  } else
  {
    return("Error! You must have to provide two vectors (i.e., LUS & Control_LUS) containing four values of Urease, Alkaline_Phosphatase, DHA &	Beta-Glucosidase")
  }
}

Try the biologicalActivityIndices package in your browser

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

biologicalActivityIndices documentation built on May 29, 2024, 8:34 a.m.