Basic ICD code function
val_filt.Rd
This function is already used by the team, and filters alphanumeric ICD-9 and ICD-10 codes pursuant to requirements.
Arguments
- input_vec
Vector of all admissible ICD codes to filter on.
- letter
Letter to base filtration on (if purely numeric use empty string "")
- lower
Lower bound on the numeric element of the ICD code (includes numerics >=lower).
- upper
Upper bound on the numeric element of the ICD code (includes numerics <=upper).