SurveilLastTest: Extract the last test done by a patient only

View source: R/EndoMineR.R

SurveilLastTestR Documentation

Extract the last test done by a patient only

Description

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")

ropensci/EndoMineR documentation built on March 14, 2023, 3:58 a.m.