add labels_rsi_count

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-09-16 22:11:17 +02:00
1 parent b792a2754e
commit db14781593
16 files changed
+110 -29

No files matched your search

+1 -1
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