numextract: Extract the Part Numbers

View source: R/functions.R

numextractR Documentation

Extract the Part Numbers

Description

numextract takes the part numbers from cfr_part output.

Usage

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 Aug. 15, 2024, 6:34 p.m.