next up previous contents
Next: Basic computing operations Up: Data reorganization Previous: Compacting self-similar data

Changing field types

 

float2int Change float fields to integer fields inside frame
-d <datain> source data
int2float Change integer fields to float fields inside frame
-d <datain> source data

This is a raw operation. If there are other references to fields inside input frame these fields are changed too.

Example: In this example arbitary data containing float fields is loaded into memory and float fields inside the data frame are converted into integer fields.

NDA> load somedata.dat -n data
# Select some fields into other frame
NDA> select floatdata -f data.float1 data.float2
# Convert float fields inside data frame to integer.
NDA> float2int -d data
#  After this command "floatdata" contains only integer fields



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