cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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