cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
skyzvoir0001
Level III

delete rows

I have several data sets from excel. My question is that how do i delete the last two rows using scripting regardless of how many number of rows -- i only need to remove the last two rows since its of no use.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: delete rows

names default to here(1);
dt = current data table();

dt << select where(row() >= N Rows(dt) - 1;
dt << delete rows;

The above script should do the trick.  Just make the data table of interest your active data table(click on the table), and then run the script.

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: delete rows

names default to here(1);
dt = current data table();

dt << select where(row() >= N Rows(dt) - 1;
dt << delete rows;

The above script should do the trick.  Just make the data table of interest your active data table(click on the table), and then run the script.

Jim

Recommended Articles