validate_clinical_codes | R Documentation |
Checks whether a data frame of clinical codes is correctly formatted for use
with extract_phenotypes
.
validate_clinical_codes(clinical_codes, allow_overlapping_categories = FALSE)
clinical_codes |
A data frame. See |
allow_overlapping_categories |
If |
Checks that:
Expected column names are present
All columns are of type character
No missing values are present in any column
No
disease categories overlap with each other i.e. each disease (for each
author
) contains a unique set of clinical codes. Overlapping disease
categories may optionally be permitted by setting
allow_overlapping_categories
to TRUE
Note that currently this does not check whether the clinical codes themselves are valid (i.e. whether a clinical code exists for a given coding system).
Returns invisibly TRUE
if all checks pass.
validate_clinical_codes(example_clinical_codes())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.