next up previous contents
Next: Finding unique indexes from Up: Data reorganization Previous: Indexing through a joining

Finding unique data records

 

uniq Choose unique data records into classes
-d <data> source data
-cout <cldata> target classification
[-auto] automated naming for classes

This operation locates unique data records. It creates a class for each unique key and collects the indexes of those data records matching the key into the class. If flag -auto is given, then the new classes are named using a running index. Otherwise, created new classes are named using the names of the fields and a combination of the values in those "unique" data records.

Example: A typical use for uniq is to find unique data records according to some key fields and then summarize other descriptive fields within these unique groups.

...
# Summarize Boston data according to boston.chas
NDA> select keyFr -f boston.chas
NDA> uniq -d keyFr -cout custCld
NDA> clstat -d boston -c custCld -dout custData -avg
...



Anssi Lensu
Thu May 17 15:00:44 EET DST 2001