R/NSC.R

Defines functions NSC

Documented in NSC

#' @export
NSC <- function(Nutrient, Control_Nutrient){
  if(is.vector(Nutrient) && length(Nutrient)==7)
  {
    NSC <- mean(Nutrient/Control_Nutrient)
    return(NSC)
  } else
  {87--
    return("Error! You must have to provide two vectors (i.e., Nutrient & Control_Nutrient) containing selven values of N (g/kg), P (kg/ha), Fe (ppm), Mn (ppm), Zn (ppm), Cu (ppm)")
  }
}

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.