-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I'm working through an example with 100,000s of names.
To easily recover the names I use data.frame input from the package.
Because there are many names, some of them may be empty, but they do correspond to proper uncorrected name and I would like to recover them.
However, empty strings are silently removed from input and never found in the output dataset. While NAs don't get any IDs associated to them.
# Problem with IDs when using empty name
taxa_frame = data.frame(
ID = paste0("test-", 1:4),
name = c(NA, "Helianthus", "", " ")
)
matched = TNRS::TNRS(taxa_frame)
# The ID is not preserved when testing for an empty string, while it is for NA
# or spaces
matched[, 1:5]
#> ID Name_submitted Unmatched_terms Overall_score Name_matched_id
#> 1 <NA> FALSE FALSE NA
#> 2 test-2 Helianthus 1 668749
#> 3 test-4 NACreated on 2023-02-14 with reprex v2.0.2
Metadata
Metadata
Assignees
Labels
No labels