next up previous contents
Next: Classifying a data by Up: Data reorganization Previous: Binarizing a classification to

Sorting a data

 

tabular874

The operation sorts the given data frame <data> according to the keys in the frame <keydata>. If a result data is the same as <data>, then the frame <data> is replaced with the sorted data, otherwise a new data is created.

Example (ex3.4): Here are some sortings for data frames.

...
# ascending rate, replacing source with result
NDA> select key1 -f boston.rate
NDA> sort -k key1 -d boston -dout boston
...
# two fields as keys with priorities: 1.dis 2.rm
NDA> select key2 -f boston.dis boston.rm
NDA> sort -k key2 -d boston -dout boston2
...



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998