User Tools

Site Tools


com:reduceset

REDUCESET Command

REDUCESET,<var>,[sorttype]

This command will sort all of the elements in the variable list and remove duplicate values in the variable list. All values in the variable list are stored as character strings. The order of numbers when sorted lexicographically is not the same as the numeric order of the same set. If a numerically sorted list is needed, the sorttype argument will convert the elements of the variable list before the set reduction is implemented. The numerically sorted variable list will then be stored as character strings after the operation.

  • var - variable name that the command will work on
  • sorttype - Specify the way each element in the variable list will be sorted and reduced
    • STRING - Sort based on lexicographic order (default)
    • INT - Sort based on integer order
    • FLOAT - Sort based on double precision floating point ordering

Note(s): Using the INT and FLOAT sorttype for variable list that have non-numeric data elements may cause errors or inconsistent sorting behavior.

com/reduceset.txt · Last modified: 2016/11/03 14:19 by phil