cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Column to List

Hi,
Please excuse the newbie question...

How can I read in column values to a list or, alternatively just add items to a list.

Thankyou
Fanie
2 REPLIES 2
carole
Level III

Re: Column to List

Hi,

You can use :

lst = column("ColumnName") << GetAsMatrix();

lst will be a list if your column values are string, or a vector if numeric.
You can tranform a vector into list with AsList() but lots of properties are the same between vectors and lists.

To insert one value by value you have to use :
lst = list();
InsertInto(lst,value);

Hope i answer your question,
Carole

Re: Column to List

Thank you ... it worked great!

Recommended Articles