What inspired this wish list request?
I repeated need to get a list of unique items from a column or list, and it would be nice to have a built-in JMP function and/or message that makes this easier.
What is the improvement you would like to see?
My suggestion is two-fold:
- create a new message "<< get unique items" that can be passed to a data table column or String Col Box/String Col Edit Box that would return return a list of the unique values in that object
- create a new JSL function "Get Unique Items(list)" that would do the same thing for a list
Why is this idea important?
It is really mostly for some coding efficiency and readability of JSL code. The current most efficient way to get the list of unique items from a list is to use
list={"a", "b", "a", "c", "a", "d"};
unique_items=(Associative Array(list) << get keys);
the alternative would be a bit simpler and more readable
unique_items = Get Unique Items(list);
Similarly, for getting a list of unique items from a data table
// common way to do this now
unique_items=Associative Array(<column reference> << get items) << get keys;
// proposed shorter and more readable way
unique_items = <column reference> << get unique items;