Support for German and Spanish microorganism properties, cleanup

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-09-04 11:33:30 +02:00
1 parent 5405002119
commit b388e3fee7
20 files changed
+256 -157

No files matched your search

+1 -1
View File
@@ -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