cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles