An nmrec_ctl_records object has all the records of a control stream under its "records" field. This function is a convenience wrapper for selecting records of a given type (e.g., "theta").
select_records(records, name)
An nmrec_ctl_records object.
Get record objects of this type. This may be spelled any way that's accepted in the control stream.
A list of nmrec_record objects.
read_ctl()
for reading records from a file, get_record_option()
for extracting an option from a record.
ctl <- parse_ctl(nmrec_examples[["control3"]])
# Get all "$ESTIMATION" records.
select_records(ctl, "est")
#> [[1]]
#> $ESTIMATION MAXEVAL=240 PRINT=2
#>
#>