This function tries to guess the botanical or common names of trees for users with only one of these fields, not both. Since eco_run_all attempts to find matches in both common and botanical, running this is required for users that are missing one of these fields.

eco_guess(x, guess)

Arguments

x

A vector containing "common" or "botanical" names.

guess

The missing field, either "common" or "botanical".

Examples

eco_guess("common fig", "botanical")
#> [1] "ficus carica"
eco_guess("pinus eldarica", "common")
#> [1] "afghan pine"