create_EPOCH | R Documentation |
Utilizes the EPOCH method from the SDTM spec: Missing when --DTC
is blank;
equal to 'SCREENING'
if --DTC
if before RFXSTDTC
; equal to 'TREATMENT'
if --DTC
is on or after RFXSTDTC
and on or before RFXENDTC
; equal to
'FOLLOW-UP'
if --DTC
is after RFXENDTC
.
create_EPOCH(tbl, date_col, RFXSTDTC = "RFXSTDTC", RFXENDTC = "RFXENDTC")
tbl |
a data frame with date class columns |
date_col |
a string, the column name of the event date used to determine the EPOCH; this column can either have a date class or a character class in the YYYY-MM-DD format |
RFXSTDTC |
a string, the date column to use for |
RFXENDTC |
a string, the date column to use for |
a modified copy of tbl
with the EPOCH
column
create_BLFL()
, calc_DY()
df <- data.frame(
DTC = c("2023-08-01", "2023-08-02", "2023-08-03", "2023-08-04"),
RFXSTDTC = rep("2023-08-02", 4),
RFXENDTC = rep("2023-08-03", 4)
)
create_EPOCH(df, date_col = "DTC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.