powered by
Transform a data list into a format which can be read in as data by BUGS.
format4Bugs(dataList, digits = 5)
A list of data to be formatted.
The desired number of significant digits.
A charactor vector of data readable by BUGS.
# NOT RUN { dat <- list(a = runif(1), b=rnorm(2), c=matrix(rexp(4), 2, 2)) format4Bugs(dat) # }
Run the code above in your browser using DataLab