Skip to contents

Extracts the first test only per patient and returns a new dataframe listing the patientID and the first test done

Usage

SurveilFirstTest(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(), SurveilLastTest(), SurveilTimeByRow(), TimeToStatus()

Examples

dd <- SurveilFirstTest(
  Myendo, "HospitalNumber",
  "Dateofprocedure"
)