cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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