Learn R Programming

compositions (version 1.40-2)

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)

Arguments

file

a file name, with a specific format

Value

A data set, with a "title" attribute.

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:

  • a first row with a description of the data set

  • the number of variables (=nvars)

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

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

References

Missing references

See Also

read.table

Examples

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

Run the code above in your browser using DataLab