flds2str | Pack fields to one string field |
-d <data> | existing data frame |
-fout <field-name> | field to be generated |
[-sep <separator>] | separator to be used between fields |
This command packs all data fields of <data> as a string into one new data field, which is created using <field-name>. The values are packed in the same order in which they lie inside the data frame and <separator> is used between the values.
Example (ex2.4): The following example demonstrates how two fields of the Boston data can be packed into one field that is used to label the neurons of a SOM. Neurons are labelled with reclab (see section 7.4.10).
NDA> load boston.dat ... # Here the Boston data is analyzed using TS-SOM # and the SOM is visualized in window "win1" NDA> select labflds -f boston.chas boston.crim NDA> flds2str -d labflds -dout labs -sep _ NDA> reclab win1 -f labs -max 5