megaGen | R Documentation |
It produces a CSV file listing all megadiverse genera for any angiosperm family at Plants of the World Online (POWO). A numeric value should define the threshold to be considered a megadiverse genus. Frodin (2004) suggests 500 species as the threshold for a megadiverse genus.
megaGen(family, uri, thld = NULL, verbose = TRUE, save = TRUE, dir, filename)
family |
Either one family name or a vector of multiple families that are present in POWO. |
uri |
URI address for each family to be searched in POWO. |
thld |
A defined threshold of species number for a genus to be considered megadiverse. If no threshold number is provided, the function will consider a value of 500 based on Frodin (2004). |
verbose |
Logical, if |
save |
Logical, if |
dir |
Pathway to the computer's directory, where the file will be saved
provided that the argument |
filename |
Name of the output file to be saved. Default is to create a file entitled output. |
Table in .csv format that is saved on disk.
Debora Zuanny & Domingos Cardoso
POWOcodes
## Not run: library(expowo) library(taxize) fam <- c("Fabaceae", "Lecythidaceae") powocodes <- cbind(family = fam, data.frame(taxize::get_pow(fam))) megaGen(powocodes$family, powocodes$uri, thld = 500, verbose = TRUE, save = TRUE, dir = "results_megaGen/", filename = "Fabaceae_Lecythidaceae") ## Searching for all megadiverse angiosperm genera ## in any or all families, by using the URI addresses ## within the POWOcodes data file data(POWOcodes) megaGen(POWOcodes$family, POWOcodes$uri, thld = 500, verbose = TRUE, save = TRUE, dir = "results_megaGen/", filename = "megadiverse_plant_genera") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.