Extract spore size from mycoDB for a single species
Value
A character string with the spore size, e.g. "8-10 x 6-8 \u00b5m". If the species is not found in mycoDB, returns "Not in mycoDB", if the species is found but no spore size info is available, returns "No spore size info in mycoDB".
Examples
extract_spores_mycodb("Amanita muscaria")
#> [1] "10 x 8 µm"
extract_spores_mycodb("Boletus edulis")
#> ! Multiple spore size entries found for Boletus edulis. Using the first one.
#> [1] "13-18 x 4-6 µm"
extract_spores_mycodb("Xylobolus subpileatus")
#> [1] "No spore size info in mycoDB"
extract_spores_mycodb("Nonexistent species")
#> [1] "Not in mycoDB"
extract_spores_mycodb("Amanita")
#> [1] "No spore size info in mycoDB"