next up previous contents
Next: Joining data frames Up: Data reorganization Previous: Data reorganization

Transpose of a data frame

 

tabular719

This command creates a full transpose of a frame. Source frame fields become data records of the target data frame, in which fields are identified with names containing the prefix and the number of the original data record within the source frame.

Example: In this example the source frame contains x, y and z coordinates of 150 data points, that is each data record contains the coordinates of one point. The resulting transpose koord contains only 3 data records. The first has the x coordinates of all the 150 points, second the y coordinates and third the z coordinates.

...
NDA> ls -fr points
points.x
points.y
points.z
NDA> transpose -d points -dout koord -pre p
NDA> ls -fr koord
koord.p1
koord.p2
koord.p3
...
koord.p149
koord.p150
NDA>



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