#' @title Calculate the \code{f4} parameter
#' @description Calculates \code{f4} model parameter, which is variable depending on soil sand
#' fraction.
#' @param sand_frac A numeric scalar or vector indicating the sand proportion in the soil mineral
#' makeup, fractional.
#' @param params A named list containing model parameters. Defaults to the package default parameter
#' set \code{soilc_params}.
f4 <- function(sand_frac, params = soilc_params) {
1 - params$f5$be - (params$f4par1$be + params$f4par2$be * sand_frac)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.