Catalog Convention White Sheet (Revision 3)
The purpose of this convention is to standarize the data structure used to
store the environmental data and associated meta-data. All data-sets provided and
processed by the vetools package that follow this convention are of class "Catalog"
and are referred as "Collection"
s. Each collection provides the following
structure of class list
:
"list"
with name "catalog"
where each element is composed of
exactly ten standard elements and zero or more optional/extra elements.
The required standard elements are:
Name
"character"
Altitude
Latitude
Longitude
Measure.code
Measure.unit
Install
Start
Instalacion
State
Avble.yrs
"ts"
. It is required
that at least one be present under the name of "data"
.
This pair of lists ("catalog"
and "data"
) form the collection
. The two (or more)
items are always of class "list"
and are in direct correspondence, i.e. item n of
the "catalog"
corresponds to the measured variable item n in "data"
.
For example, suppose collection is a collection of 30 stations,
then collection$catalog[[4]]
element describes the measurement of collection$data[[4]]
.
Functions Functions provided to read data sources are
read.HIDROX
read.MARN
read.MINAMB
These functions all return a list class "Catalog"
. Generally are
parsed as follows:
file = system.file('tests/test-HIDROX.csv',package='vetools') collection <- read.HIDROX(file) names(collection$catalog[[1]]) summary(collection) print(collection) plot(collection)
summary.Catalog
,
read.HIDROX
,
read.MARN
,
read.MINAMB
.