Subscribe Bookmark RSS Feed

JSL: get unique values of a data table column

Hi,

I currently use the summary command to get unique values of a data table column, which in my opinion is too complicated for that simple task. I think there has to be a simpler command that works on a data table column or a vector, but I cannot find one. Am I right?

My current code looks like this:


1 ACCEPTED SOLUTION

Accepted Solutions
mpb

Super User

Joined:

Jun 23, 2011

Solution

Try summarize...

4 REPLIES
mpb

Super User

Joined:

Jun 23, 2011

Solution

Try summarize...

Thanks for your help! Summarize works fine!

Dahla
markbailey

Staff

Joined:

Jun 23, 2011

Also:

unique values = Associative Array( col ) << Get Keys
Learn it once, use it forever!
uday_guntupalli

Community Trekker

Joined:

Sep 15, 2014

Summarize works well if you want to keep the data in a data table format .

Associative Array as suggested by @markbailey works well if you want to work in lists .