fg_assign | R Documentation |
Assigns FUNGuild data (e.g. trophic mode, functional guild, etc) to taxa listed in a dataframe using the FUNGuild database (PLEASE CITE:Nguyen et al. 2016).
fg_assign(
tax_table,
url = "http://www.stbates.org/funguild_db.php",
tax_cols = c("new_phylum", "new_class", "new_order", "new_family", "new_genus",
"new_species")
)
tax_table |
Data.frame of taxonomic classifications (e.g. phylum, class, order, family, genus, and species names) |
url |
URL where FUNGuild database lives. Current default: http://www.stbates.org/funguild_db.php. |
tax_cols |
Character vector specifying the column names containing taxonomic variables. Names must be in descending order of taxonomic rank. Default is c("new_phylum", "new_class", "new_order", "new_family", "new_genus", "new_species"). |
Returns the input data.frame with FUNGuild assignments appended.
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. doi:10.1016/j.funeco.2015.06.006
library(fungarium)
data(agaricales_updated) #import sample dataset with updated taxon names
#get funguild assignments
agaricales_fg <- fg_assign(agaricales_updated)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.