GME

Geospatial Modelling Environment

uniquevalues

Reports the unique values for a specified field in an attribute table

Description

This tools generates a sorted list of unique values for a specified field in an attribute table. If the optional parameter 'rformat' is set to TRUE then the list is reported using R syntax so that the result can be copied and pasted into R, thereby creating a vector in R that contains the unique values.

Syntax

uniquevalues(in, field, [rformat], [where]);

inthe input vector feature source
fieldthe field name to process
[rformat](TRUE/FALSE) writes the output as in R vector format (default=FALSE)
[where]the selection statement that will be applied to the feature data source to identify a subset of features to process (see full Help documentation for further details)

Example

uniquevalues(in="C:\data\roads.shp", field="ROADNAME");

uniquevalues(in="C:\data\telemetry.shp", field="ANIMALID", rformat=TRUE);


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

An apology for failing to respond to correspondence in recent months  Read more...

Tips on how to use this interface efficiently  Read more...

Sign up for the newsletter if you wish to receive notification of updates, new functionality, bug fixes, and other related news

Links

Open Source GIS

Copyright © 2001-2010 Hawthorne L. Beyer, Spatial Ecology LLC