R/join_cov_and_par.R

Defines functions join_cov_and_par

Documented in join_cov_and_par

#' Combines covariates and parameters into a single list, useful for reparametrization of the model.
#'
#' @param covs covariates object
#' @param pars model parameters, such as the output of the `parameters()` call frmo a model library.
#'
#' @export
#' @return List containing covariates and parameters
join_cov_and_par <- function(covs, pars){
  c(pars, lapply(covs, `[[`, "value"))
}

Try the PKPDsim package in your browser

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

PKPDsim documentation built on March 7, 2023, 5:40 p.m.