bind_rows

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-10 17:09:48 +01:00
1 parent 03294c7901
commit 2007c3eef3
15 files changed
+48 -31

No files matched your search

+2 -2
View File
@@ -325,7 +325,7 @@ as.mo <- function(x,
result_mo <- NA_character_
} else {
result_mo <- AMR_env$MO_lookup$mo[match(top_hits[1], AMR_env$MO_lookup$fullname)]
AMR_env$mo_uncertainties <- rbind(AMR_env$mo_uncertainties,
AMR_env$mo_uncertainties <- bind_rows2(AMR_env$mo_uncertainties,
data.frame(
original_input = x_search,
input = x_search_cleaned,
@@ -339,7 +339,7 @@ as.mo <- function(x,
stringsAsFactors = FALSE
)
# save to package env to save time for next time
AMR_env$mo_previously_coerced <- unique(rbind(AMR_env$mo_previously_coerced,
AMR_env$mo_previously_coerced <- unique(bind_rows2(AMR_env$mo_previously_coerced,
data.frame(
x = paste(x_search, minimum_matching_score),
mo = result_mo,