R/NHI.R

Defines functions NHI

Documented in NHI

#' Calculate N Harvest Index (NHI)
#' @description
#' The percent of plant tissue N that is contained in the yield component.
#' Formula: NHI = YieldF / PlantNf
#' @param YieldF A numeric vector of final yield values.
#' @param PlantNf A numeric vector for total plant tissue N.
#' @return A numeric vector of NHI values.
#' @examples
#' YieldF <- c(10, 12, 15)
#' PlantNf <- c(2.5, 3.0, 3.2)
#' NHI(YieldF, PlantNf)
#' @export
NHI <- function(YieldF, PlantNf) {
  return(YieldF / PlantNf)
}

Try the NUETON package in your browser

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

NUETON documentation built on Dec. 18, 2025, 1:07 a.m.