get_alt_drugname: Get alternative drug combination name

View source: R/input.R

get_alt_drugnameR Documentation

Get alternative drug combination name

Description

Use this function on a string A-B that represents a drug combination, to get the reverse combination name - B-A - for testing/checking data.

Usage

get_alt_drugname(drug.comb)

Arguments

drug.comb

a string in the form drugname.1-drugname.2 (no spaces between the names and the hyphen '-')

Value

the alternative, yet equivalent drug combination

Examples

drug.comb = "A-B"
alt.drug.comb = get_alt_drugname(drug.comb)


bblodfon/emba documentation built on April 30, 2023, 5:11 a.m.