transpose | Create transpose of a frame |
-d <data> | source data frame |
-dout <dataout> | target data frame |
[-pre <prefix>] | prefix for the names of created fields |
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 row number of the original data record within the source frame. The default prefix is `f'.
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 single 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>