Read standard data files {compositions}R Documentation

Reads a data file in a geoeas format

Description

Reads a data file, which must be formatted either as a geoEAS file (described below).

Usage

read.geoeas(file)
read.geoEAS(file)
          

Arguments

file

a file name, with a specific format

Details

The data files must be in the adequate format: "read.geoEAS" and "read.geoeas" read geoEAS format.

The geoEAS format has the following structure:

1

a first row with a description of the data set

2

the number of variables (=nvars)

3

"nvars" rows, each containing the name of a variable

4

the data set, in a matrix of "nvars" columns and as many rows as individuals

Value

A data set, with a "title" attribute.

Note

Labels and title should not contain tabs. This might produce an error when reading.

Author(s)

Raimon Tolosana-Delgado

References

Missing references

See Also

read.table

Examples

#
# Files can be found in the test-subdirectory of the package
#
## Not run: 
  read.geoeas("TRUE.DAT")
  read.geoEAS("TRUE.DAT")

## End(Not run)

[Package compositions version 2.0-8 Index]