Imputes Partial Date/Time Data Cutoff Variable (DCUTDTC)
Source:R/impute_dcutdtc.R
impute_dcutdtc.Rd
Imputes partial date/time data cutoff variable (DCUTDTC), as required by the datacut process.
Value
Returns the input data cut dataframe, with the additional of one extra variable (varout) in POSIXct datetime format, which is the imputed version of varin.
Examples
dcut <- data.frame(
USUBJID = rep(c("UXYZ123a"), 7),
DCUTDTC = c(
"2022-06-23", "2022-06-23T16", "2022-06-23T16:57", "2022-06-23T16:57:30",
"2022-06-23T16:57:30.123", "2022-06-23T16:-:30", "2022-06-23T-:57:30"
)
)
dcut_final <- impute_dcutdtc(dsin = dcut, varin = DCUTDTC, varout = DCUTDTM)