next up previous contents
Next: Select classes by evaluating Up: Field evaluator Previous: Record selector

Classification with expressions

 

selcl Select records according to a boolean expression
-cout <cldata> target classified data
-clout <class> class to be created
-expr <expr>; expression to be evaluated
[-v] verbose evaluation

This command selects the indexes of data records into a new class. It evaluates a given boolean expression for each record, and those records returning the value TRUE are collected to the class. Therefore, the expression must return boolean values. More information about expressions can be found in section 4.2.1.

Example (ex4.5): The indexes of data records having a value of 3.0 or more in field zn are placed in the class bigZn.

NDA> load boston.dat
NDA> selcl -cout cld1 -clout bigZn -expr 'boston.zn' > 3.0; -v
...



Anssi Lensu
Wed Oct 6 12:57:48 EET DST 1999