pr2_buid_taxons: Build taxon table (long format)

Description Usage Arguments Value Note Examples

Description

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

Usage

1
pr2_buid_taxons(pr2_taxonomy, pr2.env, add_old_fields = FALSE)

Arguments

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

Value

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"

Note

The input data frame does not need to be the whole pr2 taxo, can be taxo extracted from an Excel file.

Examples

1
pr2_taxons <- pr2_buid_taxons(pr2_taxonomy)

vaulot/dvutils documentation built on Nov. 20, 2021, 11:01 a.m.