Description Usage Arguments Value
Temporary vector with zero values
1 | blank_col(taxon, wide.df)
|
taxon |
The name of the taxon necessary for calculating a metric but is not found in the data set. |
wide.df |
Taxonomic counts aggregated at the appropriate taxonomic rank in a wide data format. Use the wide function to prepare the data. |
Creates a temporary vector containing zero values the length of the data frame specified by the object taxa.rank. Prevents errors created by missing taxon names necessary for metric calculations. For example, if no Trichoptera taxa were observed in the data set then there would be no column named "Trichoptera" in the wide order taxa.rank data frame. When metrics, such as pct_ept or pct_trichoptera, search for a column named "Trichoptera" a null value is returned and the function fails. Therefore, this function temporarly fills the missing columns with zeros and the metric can be calculated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.