R/parameter_names.R

Defines functions parameter_names

Documented in parameter_names

#' Get vector of parameter names
#'
#' @inheritParams photosynthesis
#' @param which A character string indicating which parameter names to retrieve: "leaf", "enviro", "bake", or "constants". Partial matching allowed.
#'
#' @returns 
#' 
#' A character vector with parameter names associated with each type, "leaf", "enviro", "bake", or "constants".
#' 
#' @examples
#'
#' parameter_names("leaf", use_tealeaves = FALSE)
#' @export
parameter_names = function(which, use_tealeaves) {
  
  which |>
    match.arg(get_par_types()) |>
    make_default_parameter_list(use_tealeaves) |>
    names()

}

Try the photosynthesis package in your browser

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

photosynthesis documentation built on Aug. 15, 2023, 9:08 a.m.