get.paldata: Function for importing the contents of a PAL file into R

Description Usage Arguments Value

Description

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

Usage

1
get.paldata(datadir, coverage, filename="pal.adf")

Arguments

datadir

Directory under which all the coverages and a directory called 'info' are.

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, it is called 'pal.adf'

Value

This function returns a list with two elements. The first one is a data frame with the next fields (columns):

PolygonID

A number that identifies this polygon.

MinX

Minimum value for all the X component of the coordinates.

MinY

Minimum value for all the Y component of the coordinates.

MaxX

Maximum value for all the X component of the coordinates.

MaxY

Maximum value for all the Y component of the coordinates.

NArcs

?

The second element in the list is also a list in which each element is composed by three arrays with information about the polygons that are in the polygon boundary: 'Arc ID', 'From Node' and 'Adjacent Polygon'.



Search within the RArcInfo package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.