User Tools

Site Tools


com:reduceset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
com:reduceset [2015/02/19 13:57]
phil
com:reduceset [2016/11/03 14:19] (current)
phil
Line 3: Line 3:
 REDUCESET,<​var>,​[sorttype] 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 user need a numerically sorted list, 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       +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   * var - variable name that the command will work on
Line 10: Line 10:
     * INT - Sort based on integer order     * INT - Sort based on integer order
     * FLOAT - Sort based on double precision floating point ordering     * 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.1424372267.txt.gz · Last modified: 2015/02/19 13:57 by phil