next up previous contents
Next: Selecting classes to a Up: Basic operations for managing Previous: Representing the fields of

Selecting fields to a data

 

tabular558

The operation connects fields to a data frame which will be created if it does not exist. The command can also be used to add more fields to an existing frame as the example below shows.

tabular565

This operation connects all the fields from a given data to a target data.

Example: Names in the name space are listed by ls and then two of them have been selected to the new data "data2".

NDA> load boston.dat
NDA> ls -u -fr
d       boston
f       boston.crim
f       boston.zn
f       boston.indus
f       boston.chas
...
NDA> select data2 -f boston.crim boston.zn
# select more fields
NDA> select data2 -f boston.indus
NDA> ls -fr data2
data2.crim
data2.zn
data2.indus
# select all the fields from the given data
NDA> select data3 -d boston
...

figure574



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