Description Usage Arguments Functions
Filters a data.frame of patients for valid or invalid ICD codes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | filter_valid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(.subset2(x, icd_name)),
invert = FALSE,
...
)
filter_invalid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(x[[icd_name]]),
invert = FALSE
)
icd9_filter_valid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(x[[icd_name]]),
invert = FALSE
)
icd10_filter_valid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(x[[icd_name]]),
invert = FALSE
)
icd9_filter_invalid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(x[[icd_name]]),
invert = FALSE
)
icd10_filter_invalid(
x,
icd_name = get_icd_name(x),
short_code = guess_short(x[[icd_name]]),
invert = FALSE
)
|
x |
a data.frame containing a column of ICD codes |
icd_name |
The name of the column in the |
short_code |
single logical value which determines whether the ICD-9
code provided is in short ( |
invert |
Single logical value. Returns the inverse of the result. E.g. if seeking valid ICD-9 codes, the invalid ones are returned. |
... |
arguments passed to the class-specific functions |
filter_invalid
: Filter invalid rows from data frame of patients with
ICD codes. This can also be achieved with filter_valid
and
invert = TRUE
icd9_filter_valid
: Filter data frame for valid ICD codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.