nearest_spells: nearest_spells

Description Usage Arguments Value

Description

nearest_spells

Usage

1
2
3
4
nearest_spells(bundles, episodes, bundle_date_col = "Admission.Datetime",
  bundle_id_col = "PseudoID", episode_id_col = "PseudoID",
  episode_date_col = "CSPAdmissionTime", episode_spell_col = "spell_number",
  episode_new_spell = "new_spell")

Arguments

bundles

dataframe of care bundle audit sheets

episodes

dataframe of hospital admissions from data warehouse

Value

copy of bundles with additional columns added giving information on adjacent admissions


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