With the function mdro(), you can determine multi-drug resistant organisms (MDRO). It currently support these guidelines:

  • “Intrinsic Resistance and Exceptional Phenotypes Tables”, by EUCAST (European Committee on Antimicrobial Susceptibility Testing)
  • “Companion handbook to the WHO guidelines for the programmatic management of drug-resistant tuberculosis”, by WHO (World Health Organization)
  • “WIP-Richtlijn Bijzonder Resistente Micro-organismen (BRMO)”, by RIVM (Rijksinstituut voor de Volksgezondheid, the Netherlands National Institute for Public Health and the Environment)

As an example, I will make a data set to determine multi-drug resistant TB:

Because all column names are automatically verified for valid drug names or codes, this would have worked exactly the same:

The data set looks like this now:

We can now add the interpretation of MDR-TB to our data set:

We also created a package dedicated to data cleaning and checking, called the clean package. It gets automatically installed with the AMR package, so we only have to load it:

library(clean)

It contains the freq() function, to create a frequency table:

freq(my_TB_data$mdr)

Frequency table

Class: factor > ordered (numeric)
Length: 5,000 (of which NA: 0 = 0%)
Levels: 5: Negative < Mono-resistant < Poly-resistant < Multi-drug-resistant <…
Unique: 5

Item Count Percent Cum. Count Cum. Percent
1 Mono-resistant 3250 65.00% 3250 65.00%
2 Negative 634 12.68% 3884 77.68%
3 Multi-drug-resistant 623 12.46% 4507 90.14%
4 Poly-resistant 282 5.64% 4789 95.78%
5 Extensive drug-resistant 211 4.22% 5000 100.00%