cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
GardDog
Level III

I have a script, and I want to add some values to my data in a specific row and column. There are no unique values to where I could use an if statement to signify the row. Are there any other options to do this?

 
1 REPLY 1
txnelson
Super User

Re: I have a script, and I want to add some values to my data in a specific row and column. There are no unique values to where I could use an if statement to signify the row. Are there any other options to do this?

Here are a variety of ways to directly access specific row/columns and change their values.  They are all documented in the Scripting Guide.

     Help==>Documentation Library

names default to here(1);

dt=open("$SAMPLE_DATA/big class.jmp");

:height[2] = 99;

dt[4,4]=88;

column(dt, "Height")[6] = 44;

:height[dt<<get rows where(:age == 13)] = 21;

:height[16::20] = 34;

 

Jim