select | Select fields to a frame |
<data> | name of the data frame |
-f <field-list> | fields to be selected |
This operation connects fields into 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.
select | Select all fields from a data frame into a target frame |
<data> | name of the target data frame |
-d <src-name> | source data frame |
This operation connects all the fields from a given frame to a target frame.
Example: Names in the name space are listed with ls and then two fields get selected to the new frame data2. Thereafter, an additional field is added to 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 fields from a given data NDA> select data3 -d boston