Skip to contents

Stan parameter regex pattern

Usage

pat_depth(depth = 1)

Arguments

depth

Integer. The parameters' dimension number. Parameters with dimension number equal to or less than depth will be retrieved.

Examples

pat_depth(0)
#> Error in pat_depth(0): could not find function "pat_depth"
pat_depth(1)
#> Error in pat_depth(1): could not find function "pat_depth"
pat_depth(2)
#> Error in pat_depth(2): could not find function "pat_depth"
grepl( pat_depth(0), c("a", "a[1]", "a[1,2]", "a[1,2,3]") )
#> Error in pat_depth(0): could not find function "pat_depth"
grepl( pat_depth(2), c("a", "a[1]", "a[1,2]", "a[1,2,3]") )
#> Error in pat_depth(2): could not find function "pat_depth"