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
NetflixCrow956
Level III

Operation Rows

Hello everyone, I would like to know how to count the number of "OTPs" that are equal to 0 and make the division on the total number of LINES of OTP ? Thank you for your help

 

NetflixCrow956_0-1660220389778.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Operation Rows

Create new formula column such as

:OTP == 0

jthi_0-1660290585326.png

then use summary to create new table using the new column as Subgroup (remove link to original data table if you don't need it)

jthi_1-1660290595316.png

select N Rows and N(1) columns and create new formula column with right click menu:

jthi_3-1660290716678.png

jthi_4-1660290729283.png

 

 

-Jarmo

View solution in original post

2 REPLIES 2
Ressel
Level VII

Re: Operation Rows

Here's how you get the number of rows where OTP is equal to zero (see also here:( 

 

dt = current data table () << select where (:OTP == 0); // suggest to have only the one table of interest for you open when testing this

num_selected = nrows(dt << get selected rows); // num_selected is now the number of rows where :OTP is equal to zero 

Another way is via point & click:

  1. Convert the OTP column to Data Type "Character" under Column Info.
  2. Run a distribution analysis of the OTP column. This will show you how many rows with OTP equal to 0 there are.

 

Can you elaborate a little on the second part of the task, i.e., "...make the division on the total number of LINES of OTP."? I don't understand this. (Sorry.)

 

 

jthi
Super User

Re: Operation Rows

Create new formula column such as

:OTP == 0

jthi_0-1660290585326.png

then use summary to create new table using the new column as Subgroup (remove link to original data table if you don't need it)

jthi_1-1660290595316.png

select N Rows and N(1) columns and create new formula column with right click menu:

jthi_3-1660290716678.png

jthi_4-1660290729283.png

 

 

-Jarmo

Recommended Articles