jg_nblock: Get number of blocks in JAGS model code

Description Usage Arguments Value 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.

Examples

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

poissonconsulting/jaggernaut documentation built on Feb. 18, 2021, 11:10 p.m.