#install.packages("devtools")
#library(devtools)
install_github("sas2r/clinical_fd")
library(clinicalfd)
I am calculating
TRTEDT Date of Last Exposure to Treatment integer 8 DATE9. The date of final dose (from the CRF) is EX.EXENDTC on the subject's last EX record. If the date of final dose is missing for the subject and the subject discontinued after visit 3, use the date of discontinuation as the date of last dose. Convert the date to a SAS date. \line
for this I am doing
ex_01 <- arrange (select (ex , usubjid , exseq , extrt , visit, visitnum , exendtc) , usubjid , visitnum )
ex_02 <- ex_01 %>%
arrange (usubjid , visitnum) %>%
group_by (usubjid ) %>%
summarise_all (last)
in the Ex dataset there are couple of missing dates , I want to
- convert the exendtc to date format so that I can do some calculations using it
- Not sure how to separate the missing dates
Thanks
Kumar