Extracts a subset of lines from the model.

# S3 method for class 'stanedit'
x[i, ...]

Arguments

x

A stanedit

i

A vector of line numbers

...

ignored

Value

a character string of the extracted model lines(s)

Examples

model_file_name <- system.file(package = "rbi", "PZ.bi")
PZ <- stanedit(filename = model_file_name)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
PZ[3:4]
#> [1] NA NA