jg_nblock: Get number of blocks in JAGS model code

Description Usage Arguments Value See Also Examples

Description

Gets number of blocks in JAGS model code. Throws an error if unbalanced brackets

Usage

1

Arguments

x

string of JAGS model code

Value

Count of number of blocks.

See Also

juggler and jg_blocks

Examples

1
jg_nblock("data {X <- 2} model { Y ~ dpois(X) }")

poissonconsulting/juggler documentation built on Feb. 18, 2021, 11:12 p.m.