uniq

Compare adjacent points and discard any duplicates, much like the UNIX uniq command.

uniq [field1, ... fieldN] [by groupfield1, ... groupfieldN]
Parameter Description Required?
fieldN One or more fields to check for changes.

If all of a point's fieldN values are the same as on the previous point, the point is discarded as being a duplicate.

No; the default is all fields other than time
by One or more fields by which to group. See Grouping fields with by. No

Example: Only output points where the random value of y is unique

emit -from :0: -limit 10
| put x = Math.random() * 3
| put y = Math.floor(x)
| uniq
| skip 1
| view text