#' @title Get parameter descriptions and units
#'
#' @description Function to access parameter descriptions and units
#' used in \code{ConFluxPro}
#'
#' @param x Any object or data.frame to match the parameters to, or a character
#' vector of parameter names.
#'
#' @export
#'
cfp_parameter <- function(x = NULL){
UseMethod("cfp_parameter")
}
#' @exportS3Method
cfp_parameter.default <- function(x = NULL){
y <- parameter
if (is.null(x)){
return(y)
}
cat("\nThis object contains the following parameters:\n")
y[y$name %in% names(x), ]
}
#' @exportS3Method
cfp_parameter.character <- function(x){
y <- parameter
y[y$name %in% x, ]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.