SurveilFirstTest: Extracts the first test only per patient

View source: R/EndoMineR.R

SurveilFirstTestR Documentation

Extracts the first test only per patient

Description

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

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