read_data {metrix}R Documentation

Read taxa data

Description

Load data from a formatted taxon table

Usage

read_data(file_name, correct = TRUE, verbose = FALSE)

Arguments

file_name

Name of formatted taxon table file. Use metrix_table_template to create a new formatted table file.

correct

A logical value indicating if the auto correct system should be used (default correct = TRUE).

verbose

A logical value indicating if progress messages should be given.

Details

This function reads a formatted taxa .csv file and checks whether it is properly formatted. This function will determine which character to use as separator for data and decimals.
The format of the input table must contain 8 columns that refer to the scientific and functional classification of the taxa. The first 7 columns refer to Class, Order, Family, Subfamily, Tribe, Genus and Species. Special care must be taken when entering the taxa nomenclature, because if it is misspelled, the package will not take this classification into account. It is not necessary to put genera and species in italics. Column 8 refers to the functional group of the taxa, which can be filtering collectors (FC), gathering collectors (GC), predators (P), scrapers (SCR) and shredders (SHR). After these columns, the places where you want to calculate the packet metrics are entered. It is essential that the site data are located after these taxonomic and functional classification columns. The user will be able to load the table with the amount of taxa and sites, as desired.
Site columns with no entries and rows with no information of functional classification of the taxa will not be loaded. This function also has an autocorrect system that compares the words used to describe a taxon with a list of properly written words in order to find possible input errors. If correct = TRUE the autocorrect system will check all the names and perform corrections when possible (the file will not be modified). The autocorrect system will inform the user if it finds an issue that needs a manual check.

Value

The function returns:

dataset

A table that can be used as input for other metrix functions.

Author(s)

Juan Manuel Cabrera and Julieta Capeletti.


[Package metrix version 1.1.0 Index]