pm_bind_rows

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-11 22:28:48 +01:00
1 parent b146de6d7f
commit c51fb24363
16 files changed
+282 -275

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 <- bind_rows2(AMR_env$mo_uncertainties,
AMR_env$mo_uncertainties <- pm_bind_rows(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(bind_rows2(AMR_env$mo_previously_coerced,
AMR_env$mo_previously_coerced <- unique(pm_bind_rows(AMR_env$mo_previously_coerced,
data.frame(
x = paste(x_search, minimum_matching_score),
mo = result_mo,