Learn R Programming

compositions (version 2.0-8)

Read standard data files: 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)

Value

A data set, with a "title" attribute.

Arguments

file

a file name, with a specific format

Author

Raimon Tolosana-Delgado

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

References

Missing references

See Also

Examples

Run this code
#
# Files can be found in the test-subdirectory of the package
#
if (FALSE) {
  read.geoeas("TRUE.DAT")
  read.geoEAS("TRUE.DAT")
}

Run the code above in your browser using DataLab