mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 01:02:47 +02:00
Support for German and Spanish microorganism properties, cleanup
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
ab_property <- function(x, property = 'official') {
|
||||
property <- property[1]
|
||||
if (!property %in% colnames(antibiotics)) {
|
||||
stop("invalid property: ", property, " - use a column name of `antibiotics`")
|
||||
stop("invalid property: ", property, " - use a column name of the `antibiotics` data set")
|
||||
}
|
||||
if (!is.atc(x)) {
|
||||
x <- as.atc(x) # this will give a warning if x cannot be coerced
|
||||
|
Reference in New Issue
Block a user