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)

Arguments

records

An nmrec_ctl_records object.

name

Get record objects of this type. This may be spelled any way that's accepted in the control stream.

Value

A list of nmrec_record objects.

See also

read_ctl() for reading records from a file, get_record_option() for extracting an option from a record.

Examples

ctl <- parse_ctl(nmrec_examples[["control3"]])
# Get all "$ESTIMATION" records.
select_records(ctl, "est")
#> [[1]]
#> $ESTIMATION  MAXEVAL=240  PRINT=2
#> 
#>