R/light_percent.R

Defines functions light_percentage

Documented in light_percentage

#' Calculate light percentage from surface at a discrete depth
#'
#' @param light_at_depth Light measurement at discrete depth, mmol
#' @param light_at_surface Light measurement at surface, mmol
#' @export

light_percentage <- function(light_at_depth, light_at_surface){
  round((light_at_depth / light_at_surface) * 100, 1)
}
corysauve/r4es documentation built on Dec. 19, 2021, 6:05 p.m.