BookmarkSubscribe
Choose Language Hide Translation Bar
zainilmin
Community Trekker

In JMP need column data as list

I am trying to get the column data as list in jmp. The following is the table.

State Capital

NJ     Trenton

NY    Albany

TX     Austin

I need the list of capital {'Trenton', 'Albany', 'Austin'}. Also i need to loop through list. Please suggest available options.

0 Kudos
1 REPLY 1
Highlighted
ian_jmp
Staff

Re: In JMP need column data as list

If dt is a reference to your data table, then 'myList = Column(dt, 'Capital') << getValues' will put the values into myList. To loop over these values, do 'For(i=1, i<=NItems(myList), i++, Print(myList))'.