R/growthSS_generalHelpers.R

Defines functions .intModelHelper

#' helper function to help make growth models including an intercept term in growthSS
#' @examples
#' .intModelHelper("int_logistic")
#' .intModelHelper("logistic")
#'
#' @keywords internal
#' @noRd

.intModelHelper <- function(model) {
  if (grepl("int_", model)) {
    int <- TRUE
    model <- gsub("int_", "", model)
  } else {
    int <- FALSE
  }
  return(list("model" = model, "int" = int))
}

Try the pcvr package in your browser

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

pcvr documentation built on April 16, 2025, 5:12 p.m.