lake.morphol.2016.read.attrib {ecoval}R Documentation

Reads attributes with different segmentation.

Description

Reads individual attributes with different segmentation and combines them to a data frame with unified segmentation.

Usage

lake.morphol.2016.read.attrib(directory    = ".",
                              language     = "English",
                              dictionaries = NA,
                              attrib.names = NA,
                              col.names    = NA)

Arguments

directory

(optional) Directory from which the files are read. The directory must contain the data files, one file per attribute. The file names must start with the attribute names as given by the argument attrib.names and they must contain the columns as specified by the argument col.names. The file format must be comma-separated text with the first row containing the headers as specified by the argument col.names and subsequent rows the corresponding data. The files may contain additional columns that will be ignored.

language

Language to be used to denote nodes, attributes and attribute levels. Must be a column name of the table provided by the second argument.

dictionaries

Matrix of dictionaries with the languages provided by the column names and the original words provided as the row names. If dictionary is NA, the default dictionary ecoval.dictionaries.default is loaded.

attrib.names

(optional) Names of the attributes. These should match first characters of the names of the files that provide the corresponding data. NA indicates that the attribute names are taken from the dictionary. Order of the names is E01, E02, B02, B01, C06, C01, C02, C03, C04, C05, D01, D02.

col.names

(optional) Names of the columns to be read from the individual attribute files. The first three elements must be present and represent the columns containing the start and end point of the reach (one dimenstional length measure along the shoreline) and the corresponding attribute level. The fourth element represents an optional id to distinguish different lakes or shoreline measures (for the same id, the lenght measure used to characterize start and end of a reach must be unique). This element can be missing or NA; both indicates a unique lenght measure across all records. Further column names can be provided and are interpreted as comments. These are merged to a single string when compiling the output data frame. col.names = NA indicates that the names form the dictionary are used.

Value

The function returns a data frame with start and end of the reaches in the first two columns and the attribute levels in subsequent columns.

Author(s)

Peter Reichert <peter.reichert@eawag.ch>

References

Langhans, S.D., Lienert, J., Schuwirth, N. and Reichert, P. How to make river assessments comparable: A demonstration for hydromorphology, Ecological Indicators 32, 264-275, 2013. doi: 10.1016/j.ecolind.2013.03.027

Langhans, S.D., Reichert, P. and Schuwirth, N. The method matters: indicator aggregation in ecological river assessment. Ecological Indicators 45, 494-507, 2014. doi: 10.1016/j.ecolind.2014.05.014

Reichert, P., Schuwirth, N. and Langhans, S. Constructing, evaluating and visualizing value and utility functions for decision support, Environmental Modelling & Software 46, 283-291, 2013. doi: 10.1016/j.envsoft.2013.01.017

Reichert, P., Langhans, S., Lienert, J. and Schuwirth, N. The conceptual foundation of environmental decision support. Journal of Environmental Management. 154, 316-332, 2015. doi: 10.1016/j.jenvman.2015.01.053

Reichert, P., Borsuk, M., Hostmann, M., Schweizer, S., Sporri, C., Tockner, K. and Truffer, B. Concepts of decision support for river rehabilitation, Environmental Modelling and Software 22, 188-201, 2007. doi: 10.1016/j.envsoft.2005.07.017

https://modul-stufen-konzept.ch

Niederberger, K., Rey, P., Reichert, P., Schlosser, J., Helg, U., Haertel-Borer, S., Binderheim, E. Methoden zur Untersuchung und Beurteilung der Seen. Modul: Oekomorphologie Seeufer. Bundesamt fuer Umwelt, Bern. Umwelt-Vollzug Nr. 1632. 73 S. 2016. http://www.bafu.admin.ch/uv-1632-d

Schlosser, J.A., Haertel-Borer, S., Liechti, P., Reichert, P. Konzept fuer die Untersuchung und Beurteilung der Seen in der Schweiz. Anleitung zur Entwicklung und Anwendung von Beurteilungsmethoden. Bundesamt fuer Umwelt, Bern. Umwelt-Wissen Nr. 1326. 38 S. 2013. http://www.bafu.admin.ch/uw-1326-d

See Also

lake.morphol.2016.create, lake.morphol.2016.plot.val.spatial, lake.morphol.2016.aggregate.val.spatial.


[Package ecoval version 1.2.9 Index]