lookup_side_by_side: a function to match each model's result to the desired order:

Description Usage Arguments Value Examples

View source: R/plot-etiology-side-by-side.R

Description

a function to match each model's result to the desired order:

Usage

1
lookup_side_by_side(disp_order, union_nm, nm_list)

Arguments

disp_order

the desired order

union_nm

the union of all cause names

nm_list

the list of names for each model (i.e. folder)

Value

a list of two elements:

Examples

1
2
3
4
5
6
7
 
  disp_order <- c("B","E","D","C","F","A")
  union_nm   <- c("A","B","C","D","E")
  nm_list <-list(c("C","E"),
                 c("D","B"),
                 c("C","A","E"))
  lookup_side_by_side(disp_order,union_nm,nm_list)

oslerinhealth/baker documentation built on May 22, 2021, 12:05 p.m.