R/as-nlist.R

Defines functions as_nlist.mcmcr

Documented in as_nlist.mcmcr

#' @export
nlist::as_nlist

#' @inherit nlist::as_nlist
#' @export
as_nlist.mcmcr <- function(x, ...) {
  chk_identical(nchains(x), 1L)
  chk_identical(niters(x), 1L)

  x <- as_nlists(x)
  x[[1]]
}

Try the mcmcr package in your browser

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

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.