View source: R/bacdive_extract.R
getSimplifiedAbx | R Documentation |
Simplify the full antibiotic susceptibility / resistance information
getSimplifiedAbx(
data = bacdive_abx,
extra_info = F,
most_common = T,
remove_unknown = T
)
data |
A dataframe of antibiotic susceptibility / resistance information from |
extra_info |
Whether to return some extra info for testing purposes. This will include the columns 'is resistant', 'is_sensitive', and 'diameter'. |
most_common |
The function will take the most common value for any given antibiotic / species combination. See details. |
remove_unknown |
Remove antibiotic / species combinations where the resistance / sensitivity information is unknown or variable. |
Hypothetically, a species might have 50 strains that are resistant to Penicillin and 25 strains that are sensitive. With 'most_common = T' the function will collapse the results to the most common value. Thus, the returned dataframe will have this species as being resistant to Penicillin.
A simplified dataframe of antibiotic susceptibility / resistance information.
## Not run:
bacdive_susceptibility <- getSimplifiedAbx(bacdive_abx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.