View source: R/check_pr_missing_month.R
check_pr_missing_month | R Documentation |
This check looks for partial missing dates in PR Procedures start date and end date, if end date exists. If the day of the month is known, the month should be known.
check_pr_missing_month(PR, preproc = identity, ...)
PR |
Procedures SDTM dataset with variables USUBJID, PRTRT, PRSTDTC, PRENDTC (optional), PRSPID (optional) |
preproc |
An optional company specific preprocessing script |
... |
Other arguments passed to methods |
boolean value if check failed or passed with 'msg' attribute if the test failed
PR <- data.frame(
USUBJID = 1:3,
PRTRT = c("Surgery Name","Procedure Name","Procedure"),
PRSTDTC = c("2017-01-01","2017---01","2017-01-02"),
PRENDTC = c("2017-02-01","2017-03-01","2017---01"),
PRSPID = "/F:SURG-D:12345-R:1",
PRCAT = "Form 1",
stringsAsFactors=FALSE
)
check_pr_missing_month(PR)
check_pr_missing_month(PR,preproc=roche_derive_rave_row)
PR$PRENDTC = NULL
check_pr_missing_month(PR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.