Merge summarized data about facility pairs including patient flow, isolate pairs, and gene flow (Fsp).
merge_inter_summaries( patient_flow = NULL, isolate_pair_summary = NULL, fsp_long = NULL )
patient_flow | output of get_patient_flow function |
---|---|
isolate_pair_summary | output of summarize_pairs function |
fsp_long | long-form output of get_genetic_flow function |
merged dataframe
if (FALSE) { locs <- metadata %>% dplyr::select(isolate_id, facility) %>% tibble::deframe() pair_types <- get_pair_types(dists, locs) isolate_pair_summary <- summarize_pairs(pair_types) patient_flow <- get_patient_flow(pt_trans_df = pt_trans_df) fsp_long <- make_long_form(fsp) merge_inter_summaries(patient_flow, isolate_pair_summary, fsp_long) }