R/getParameterNameList.R

Defines functions getParameterNameList

Documented in getParameterNameList

#' @title getParameterNameList
#'
#' @description Returns the names (chr) of the babsim \code{x} parameter vector.
#'
#' @param x vector of int: positions

#' @return This function returns a vector. Its elements represent
#' the names of the n-th \code{x} variables.

#' @examples
#' getParameterNameList(c(16, 18))
#' @export


getParameterNameList <- function(x) {
  y <- matrix(x, 1, )
  y <- apply(X = y, FUN = getParameterName, 2)
  names(y) <- paste0("x", x)
  return(y)
}

Try the babsim.hospital package in your browser

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

babsim.hospital documentation built on May 30, 2022, 9:05 a.m.