ST_setiΒΆ
The ST_seti function takes an vector argument (A) and removes duplicate elements. The function returns an index vector of the result.
-
C = ST_seti(A)
-
C = ST_seti(A, bSort)
Return Value
C is an index vector.
Parameters
-
A
A is a real or string vector.
-
bSort
bSort specifies if the index vektor contains the indeces of the sorted or unsorted vector. Default value is TRUE (1).
.
Example
* ST_seti([1.3, 4.2, 2.2, 4.2, 6.1, 3.1])
* 1.000 3.000 6.000 2.000 5.000
*
* ST_seti(["one", "four", "two", "four", "three"])'
4
1
5
3
*
* ST_seti(["one", "four", "two", "four", "three"], FALSE)'
1
2
3
5
History
Version | Description |
---|---|
5.9.3 | New parameter bSort. |
5.5.2 | New. |
See also
Overview Strings, ST_complement, ST_intersection, ST_union, ST_set
id-1858021