Learn R Programming

RArcInfo (version 0.1)

get.labdata: Funtion for importing the contents of a LAB file into R

Description

This function reads and imports into R the contents of a polygon labels definition file.

Usage

get.labdata(infodir, coverage, filename="lab.adf")

Arguments

infodir
Info directory where there is a file called arc.dat (usually called 'info').
coverage
The name of the coverage we want to work with
filename
The name of the file in the coverage directory that stores the data. By default, called 'lab.adf'.

Value

  • This function returns a data frame with the next fields (by columns):
  • LabelUserIDThe label of the polygon.
  • PolygonIDThe polygon related to the label.
  • Coord1XThe X component of the first coordinate.
  • Coord2XThe X component of the second coordinate.
  • Coord3XThe X component of the third coordinate.
  • Coord1YThe Y component of the first coordinate.
  • Coord2YThe Y component of the second coordinate.
  • Coord3YThe Y component of the third coordinate.

References

More information about this kind of data can be found at http://pages.infinit.net/danmo/e00/docs/v7_bin_cover.html.