Skip to contents

This extracts the last test only per patient and returns a new dataframe listing the patientID and the last test done

Usage

SurveilLastTest(dataframe, HospNum_Id, Endo_ResultPerformed)

Arguments

dataframe

dataframe

HospNum_Id

Patient ID

Endo_ResultPerformed

Date of the Endoscopy

See also

Other Basic Analysis - Surveillance Functions: HowManyOverTime(), SurveilFirstTest(), SurveilTimeByRow(), TimeToStatus()

Examples

cc <- SurveilLastTest(Myendo, "HospitalNumber", "Dateofprocedure")