cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
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!