numextract: Extract the Part Numbers

Description Usage Arguments Details Value

View source: R/functions.R

Description

numextract takes the part numbers from cfr_part output.

Usage

1
numextract(string, return = c("min", "max")[1])

Arguments

string

ideally cfr_part()$parts

return

min or max, default is "min"

Details

numextract

Each CFR chapter has multiple parts that often span volumes. To facilitate targeting a specific part, it's necessary to evaluate which parts are in each volume (e.g., Parts 18 to 199). The CFR sometimes uses terms like "END" or "end" to denote the maximum part in each chapter. numextract simply returns the max as 'Inf' in these situations.

Value

numeric value from 1 to 'Inf“


slarge/fedregs documentation built on May 29, 2020, 5:13 p.m.