This function reads and checks files with AMBI sensitivity data. The data should be stored in 'comma separated values' format (csv) consisting of two columns:
species name;
Roman numeral (I, II, III, IV, V) giving the sensitivity group
read_ambi(filename)validate_ambi(.data)
name of the AMBI sensitivity file (character)
table in AMBI-format
validate_ambi()
: validator for AMBI-format
The function performs the following tasks:
checks the existence of filename
;
checks availability of required columns (case insensitive);
removes redundant spaces;
removes duplicated records.
Borja, A., J. Franco and V. Perez, 2000. A Marine Biotic Index to Establish the Ecological Quality of Soft-Bottom Benthos Within European Estuarine and Coastal Environments. Marine Pollution Bulletin 40:1100-1114