Contents - Index


DATA > PERMUTE

PURPOSE Re-order rows, columns or matrices in a dataset according to a user specified list.

DESCRIPTION Re-ordering of matrices can be by a list given at the keyboard or from a dataset.

PARAMETERS
Input dataset: 
Name of dataset to be permuted. Data type: Matrix

New order of rows (Default is the natural order)
Rows are ordered as specified by a list.  Each row number is listed separated by a comma or space.  The keywords TO, FIRST and LAST are permissible.  Hence 5, FIRST 3, 6 TO 8, 4, LAST 2, 9 specifies the order 5, 1, 2, 3, 6, 7, 8, 4, 10, 11, 9.

A UCINET data file can be specified which contains the order.  This must be of the form

<file name> ROW (or COLUMN) <number>

where file name is the name of the data file.  The command ROW or COLUMN followed by the appropriate number specifies which row or column of the dataset is to be used. The keyword RANDOM is also allowed.

New order of cols (Default is the natural order)
Columns are ordered by a list using the same convention as for rows.

New order of matrices (Default is the natural order)
Matrices are ordered by a list using the same convention as for rows.

Output Filename (Default = 'Permuted')
Name of file which will contain permuted dataset.


LOG FILE Permuted dataset.

TIMING O(N^2).

COMMENTS There is a limitation of 255 characters on keyboard entered lists.  Lists longer than 255 characters must be specified in a UCINET dataset.

REFERENCES None.