SurveilTimeByRow: Extract the time difference between each test in days

View source: R/EndoMineR.R

SurveilTimeByRowR Documentation

Extract the time difference between each test in days

Description

This determines the time difference between each test for a patient in days It returns the time since the first and the last study as a new dataframe.

Usage

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

Examples

aa <- SurveilTimeByRow(
  Myendo, "HospitalNumber",
  "Dateofprocedure"
)

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