R/BAI.R

Defines functions 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 SoilFunctionality package in your browser

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

SoilFunctionality documentation built on May 29, 2024, 9:41 a.m.