classifyMDRfromRSI: Classify the multi-drug resistance from RSI table

Description Usage Arguments Value Examples

View source: R/classifyMDR.R

Description

A function that classify the multi-drug resistance from RSI table.

Usage

1
classifyMDRfromRSI(RSI_table, sample_ID, total_cat)

Arguments

RSI_table

A list with each row representing the sample ID and each column is the abbreviation of antimicrobial. If the isolate is resistant to the agent, 'R' is in the cell. Otherwise, 'S' is in the cell.

sample_ID

The string of sample ID that used for classifying multi-drug resistance.

total_cat

The integer number of total antimicrobial category of species.

Value

Returns the category of sample's multi-drug resistance.

Examples

1
2
3
4
5
6
7
8
#Example 5
# Using RSI_table dataset available with package
dim(RSI_table)
colnames(RSI_table)
resultsExample5 <- classifyMDRfromRSI(RSI_table = RSI_table,
                               sample_ID = "PA1387", total_cat = 8)
# To obtain value from results
resultsExample5

Cloris2000/MDRClassifier documentation built on Dec. 17, 2021, 2:06 p.m.