get.cntdata: Function for importing the contents of a CNT file into R

Description Usage Arguments Value

Description

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

Usage

1
get.cntdata(datadir, coverage, filename="cnt.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 (usually called 'cnt.adf').

Value

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

PolygonID

The polygon itself.

CoordX

An array with the X coordinates of the centroid.

CoordY

An array with the Y coordinates of the centroid.

NLabels

The number of labels this polygon has.

The second element in the list is an array with the label identifiers related to this 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.