Description Usage Arguments Value Note Examples
To be run after initial_check()
check has passed.
Parses columns, removes undesired TargetNames, replaces synonyms
of TargetNames, and when only Controls present addes new row for
with TargetName of 'negative'. ie adds new 'negative' pathogen when no
ResultType == organism present.
1 2 3 4 5 6 7 |
df |
dataframe of raw RP panel (and non RP panel) data with at least the following columns: "FlaggedAsValidation", "TargetName", "StartTime", "AssayName", "AssayResult", "StartTime", "ZipCode", "Region", "Country" |
target_PouchTitle |
Name of the PouchTitle of interest |
remove_targets |
character vector of TargetNames you want to remove (or NULL) |
synonyms |
put NULL if don't want to use. Otherwise named list where each element of the list are TargetNames that are synonyms and should be combined, the name of the element is the name to replace the synonyms with. |
Dataframe with synonyms and FlaggedAsValidation == 0 rows removed, StartTime column parsed to date, synonyms replaced, and unnecessary columns removed
This function may take several minutes to run when large dataframe is used.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.