Description Usage Arguments Value Note Examples
This constructs a taxon table (long format) from a taxonomy table (wide format) If add_old_fields = TRUE then the following columns are appended old_species_id, taxon_edited_version, taxon_edited_by, taxon_removed_version, taxon_remark, taxon_reference
1 | pr2_buid_taxons(pr2_taxonomy, pr2.env, add_old_fields = FALSE)
|
pr2_taxonomy |
dataframe - should contain eight columns kingdom -> species (this can be modified by using the pr2.env list) |
pr2.env |
list containing the taxon levels |
add_old_fields |
logical - If add_old_fields = TRUE then the following columns are appended: old_species_id, taxon_edited_version, taxon_edited_by, taxon_removed_version, taxon_remark, taxon_reference |
Data frame pr2_taxons with columns "taxon_id" , "taxon_name", "taxon_level", "parent_id", "old_species_id", "taxon_edited_version", "taxon_edited_by", "taxon_removed_version" ,"taxon_remark", "taxon_reference"
The input data frame does not need to be the whole pr2 taxo, can be taxo extracted from an Excel file.
1 | pr2_taxons <- pr2_buid_taxons(pr2_taxonomy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.