new.pat: new.pat

Description Usage Arguments Value

Description

new.pat

Usage

1
2
new.pat(df, id = "PseudoID", adt = "CSPAdmissionTime",
  epno = "EpisodeNumber")

Arguments

df

an episode dataframe

id

the column name of the id field

epno

the episode number in the spell

a.dt

the column name of the admission datetime field

Value

a dataframe which is a copy of df with a new column "new.pat" which is TRUE if the row represents an episode that is the first for that PAT_CODE, and FALSE if the row above represents an episode for the same patient.


HorridTom/clahrcnwlhf documentation built on May 7, 2019, 4:02 a.m.