1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 06:51:48 +02:00

add labels_rsi_count

This commit is contained in:
2018-09-16 22:11:17 +02:00
parent b792a2754e
commit db14781593
16 changed files with 110 additions and 29 deletions

View File

@ -187,7 +187,7 @@ mo_aerobic <- function(x) {
#' @export
mo_property <- function(x, property = 'fullname', Becker = FALSE, Lancefield = FALSE, language = NULL) {
property <- tolower(property[1])
if (!property %in% colnames(microorganisms)) {
if (!property %in% colnames(AMR::microorganisms)) {
stop("invalid property: ", property, " - use a column name of the `microorganisms` data set")
}
result1 <- as.mo(x = x, Becker = Becker, Lancefield = Lancefield) # this will give a warning if x cannot be coerced