Read standard data files | R Documentation |
Reads a data file, which must be formatted either as a geoEAS file (described below).
read.geoeas(file)
read.geoEAS(file)
file |
a file name, with a specific format |
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
A data set, with a "title" attribute.
Labels and title should not contain tabs. This might produce an error when reading.
Raimon Tolosana-Delgado
Missing references
read.table
#
# Files can be found in the test-subdirectory of the package
#
## Not run:
read.geoeas("TRUE.DAT")
read.geoEAS("TRUE.DAT")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.