translate_taxa: Translate to target taxonomy.

Description Usage Arguments Value Examples

Description

Using a translation table as generated by generate_table and modified by the user, translate the target composition data to the new taxonomic groupings.

Usage

1
translate_taxa(input_table, translation, id_cols)

Arguments

input_table

The composition data table, consisting of id_var columns, indicating spatial and compositional data, with one taxon in each column.

translation

The translation table, generated by generate_table.

id_cols

The location columns, for example c('x', 'y'), representing the spatial coordinates for the data.

Value

A data.frame with indicator columns as identified in id_cols and once column for each of the unique taxa.

Examples

1
2
3
4
5
6
7
8
{
  ## Not run: 
    calib_trans <- translate_taxa(calib_dialect,
                                  pol_table,
                                  id_cols = colnames(calib_dialect)[1:10])
  
## End(Not run)
}

PalEON-Project/stepps-cal documentation built on May 14, 2019, 8:20 a.m.