my_reorder: Reorder the measurement dimensions to match the order for...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Reorder the measurement dimensions to match the order for display

Usage

1
my_reorder(disp_order, raw_nm)

Arguments

disp_order

The vector of names to be displayed (order matters)

raw_nm

The vector of names from raw measurements (order matters)

Value

A permuted vector from 1 to length(raw_nm). For example, if its first element is 3, it means that the 3rd pathogen in raw_nm should be arranged to the first in the raw measurements.

Examples

1
2
3
  disp_order <- c("B","E","D","C","F","A")
  raw_nm <- c("C","A","E")
  my_reorder(disp_order,raw_nm)

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