Hello JMP Community,
I am trying to create a column that indexes rows by an ID column.
In other scripting language, this is accomplished with the following lines.
By ID: gen IDIndex = _n
By ID: gen IDCount = _N
I can do the following, but I index and count the whole table
New Column( "IDIndex", formula( Row() ) );
New Column( "IDCount", formula( N Row() ) );
Advice on this would be great!
Very Sincerely,
| ID |
IDIndex |
IDCount |
|---|
| 444 |
1 |
4 |
| 444 |
2 |
4 |
| 444 |
3 |
4 |
| 444 |
4 |
4 |
| 333 |
1 |
3 |
| 333 |
2 |
3 |
| 333 |
3 |
3 |