Learn R Programming

jaggR (version 0.1.1)

getModel: Get a JAGS model file

Description

This function provides an easy way for readers to get the JAGS model files used in the book. The modelID is the 4-5 character identifier used in the book. For example to get 'model-001.bugs.R', you would use getModel("001").

Usage

getModel(modelID)

Arguments

modelID

a string containing a valid model ID

Value

a string containing the model. The intention is that this can be written to disk.

Examples

Run this code
# NOT RUN {
getModel("001")
# }

Run the code above in your browser using DataLab