Learn R Programming

BEQI2 (version 2.0-0)

readERF: Read Ecotopes References File

Description

This function reads and checks files with reference values

Usage

readERF(filename, extra = NULL)

Arguments

filename
name of the ecotopes reference file (character)
extra
additional user-defined indices to be checked (character, see details)

Details

The function performs the following tasks:
  • checks the existence of filename;
  • checks availablitity of required columns (case insensitive);
  • removes redundant spaces
  • removes duplicated records

Argument extra is a character vector of additional benthic indices to be checked for. For example, if extra = "ITI", then the ecotope reference file should also contain columns ITIREF and ITIBAD.

The format of the ecotopes reference file is documented in the BEQI2-package vignette.

References

Van Loon, W, 2013. Loon2013-BEQI2-Specs-Ecotopes-27nov.doc