This extracts the last test only per patient and returns a new dataframe listing the patientID and the last test done
SurveilLastTest(dataframe, HospNum_Id, Endo_ResultPerformed)
dataframe | dataframe |
---|---|
HospNum_Id | Patient ID |
Endo_ResultPerformed | Date of the Endoscopy |
Other Basic Analysis - Surveillance Functions:
HowManyOverTime()
,
SurveilFirstTest()
,
SurveilTimeByRow()
,
TimeToStatus()
cc <- SurveilLastTest(Myendo, "HospitalNumber", "Dateofprocedure")