View source: R/check_mi_mispec.R
check_mi_mispec | R Documentation |
This check looks for missing values in the MISPEC variable, which is required. This will be flagged in P21. This may reflect a mapping issue.
check_mi_mispec(MI)
MI |
Microscopic Findings with variables USUBJID, MISPEC, MITESTCD, MIDTC |
boolean value if check failed or passed with 'msg' attribute if the test failed
Stella Banjo (HackR 2021)
MI <- data.frame(
USUBJID = c("1","2", "3"),
DOMAIN = "MI",
MISEQ = c(1, 2, 1),
MISPEC = c("","BLOCK SLIDE",NA),
MITESTCD = "TESTCD1",
MIDTC = "2020-01-01",
stringAsFactors = FALSE
)
check_mi_mispec(MI)
## No errors, MISPEC values present
MI2 <- data.frame(
USUBJID = c("1","2", "3"),
DOMAIN = "MI",
MISEQ = 1,
MISPEC = c("SLIDE", "TUMOR TISSUE", "BLOCK SLIDE"),
MITESTCD = "TESTCD1",
MIDTC = "",
stringsAsFactors = FALSE
)
check_mi_mispec(MI2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.