R/helpers_predictions.R

Defines functions tidy_mcmc_list group2string

### * TODO

# Clean-up this file

### * None of the functions in this file is exported

### * group2string()

#' Convert a group entry to a string
#'
#' @param x A vector describing a group. Can be NULL.
#'
#' @return A string.
#'
#' @keywords internal
#' @noRd

group2string <- function(x) {
    if (is.null(x)) {
        return("NULL")
    }
    n <- names(x)
    s <- paste(paste(n, x, sep = "="), collapse = "; ")
    return(s)
}

### * Alias for tidy_mcmc()

#' @keywords internal
#' @noRd

tidy_mcmc_list <- function(...) {
    tidy_mcmc(...)
}

Try the isotracer package in your browser

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

isotracer documentation built on Sept. 22, 2023, 1:07 a.m.