Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
qspringleaf
Level III

New Create Column with filling fixed value

Kindly help to suggest how to New Create Column with filling fixed value, thanks a lot. table I only have one column called "name" Table II new create two columns and fill in fixed value.

qspringleaf_0-1595944106757.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim

View solution in original post

4 REPLIES 4
Highlighted
txnelson
Super User

Re: New Create Column with filling fixed value

Create the new column.
Type in the value you want into the first row
Right click on the cell and select Fill==>To End of Table
Jim
Highlighted
qspringleaf
Level III

Re: New Create Column with filling fixed value

how to use script to auto create an column and fill in, this table only list a simple one, but some times I need create >10 column with fixed value, thanks a lot.
Highlighted
txnelson
Super User

Re: New Create Column with filling fixed value

names default to here(1);
dt=current data table();
dt << new column( "c1", character, set each value("aaaaa"));

The above is the easiest way to fill a column

Jim

View solution in original post

Highlighted
qspringleaf
Level III

Re: New Create Column with filling fixed value

so thankful, it works well.
Article Labels