Learn R Programming

rbugs (version 0.5-9.1)

format4Bugs: Format a Data List as BUGS Data Input

Description

Transform a data list into a format which can be read in as data by BUGS.

Usage

format4Bugs(dataList, digits = 5)

Arguments

dataList

A list of data to be formatted.

digits

The desired number of significant digits.

Value

A charactor vector of data readable by BUGS.

Examples

Run this code
# 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