powered by
Coerce an R object to an nlist_object().
nlist_object()
# S3 method for mcmcr as_nlist(x, ...)
An object.
Unused.
An nlist object.
numeric: Coerce named numeric vector to nlist
numeric
list: Coerce list to nlist
list
data.frame: Coerce data.frame to nlist
data.frame
mcmc: Coerce mcmc (with one iteration) to nlist
mcmc
mcmc.list: Coerce mcmc.list (with one iteration) to nlist
mcmc.list
Other coerce: as_nlists()
as_nlists()
# NOT RUN { as_nlist(list(x = 1:4)) as_nlist(c(`a[2]` = 3, `a[1]` = 2)) # }
Run the code above in your browser using DataLab