funguild_query: Return entries in the FUNGuild database which match search...

View source: R/funguildr.R

funguild_queryR Documentation

Return entries in the FUNGuild database which match search terms

Description

Return entries in the FUNGuild database which match search terms

Usage

funguild_query(
  text,
  field = c("taxon", "guid", "mbNumber", "trophicMode", "guild", "growthForm", "trait"),
  db = "https://mycoportal.org/funguild/services/api/db_return.php"
)

Arguments

text

A character string giving the text to search for. The "⁠%⁠" and "*" characters can be used as wildcards.

field

A character string giving the field of the database to search for the query text. Should be one of c("taxon", "guid", "mbNumber", "trophicMode", "guild", "growthForm", "trait").

db

Either a character string giving the base URL of the FUNGuild web API, or a data.frame containing a cached copy of the database, as returned by get_funguild_db().

Value

A tibble::tibble containing all the entried from the database which match the query.

References

Nguyen NH, Song Z, Bates ST, Branco S, Tedersoo L, Menke J, Schilling JS, Kennedy PG. 2016. FUNGuild: An open annotation tool for parsing fungal community datasets by ecological guild. Fungal Ecology 20:241–248.

Examples


funguild_query("Symbiotroph", "trophicMode", funguild_testdb)

brendanf/FUNGuildR documentation built on Oct. 18, 2023, 4:26 p.m.