This function reads and checks files containing Infaunal Trophic Index (ITI) data (Gittenberger & Van Loon, 2013)
read_iti(filename)validate_iti(.data)
A data frame with columns TAXON
containing taxa and
GROUP
containing user-defined ITI-groups
(see Gittenberger & Van Loon, 2013).
name of the ITI file (character).
table in ITI-format
validate_iti()
: validator for ITI-format
The function performs the following tasks:
checks the existence of filename
;
checks availablitity of required columns (case insensitive), i.e., TAXON and GROUP;
removes redundant spaces;
removes duplicated records.
checks if all ITI classes are I, II, III, or IV
The column 'GROUP' contains the Roman numerals I, II, III, and IV, with the following meaning:
I: suspension feeders;
II: interface feeders;
III: surface deposit feeders;
IV: subsurface deposit feeders.
Gittenberger A. and W. van Loon, 2013. Sensitivities of marine macrozoobenthos to environmental pressures in the Netherlands. Nederlandse Faunistische Mededelingen 41: 79-112.