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]);
| in | the input vector feature source | |
| field | the 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);