Hey everybody,
From my predecessor I inherit some data files with these kind of formulas (see also attached file):
![Example Formula.jpg Example Formula.jpg](https://community.jmp.com/t5/image/serverpage/image-id/32919iB7BE6B785C57E3AA/image-size/medium?v=v2&px=400)
Match( :Phase,
"Preparation", (:Date_time[2] - :Date_time[1]) / 3600,
"Cultivation", (:Date_time[5] - :Date_time[3]) / 3600,
"Harvest", (:Date_time[7] - :Date_time[6]) / 3600
)
I would like to exchange the row numbers with dedicated Timepoints, so that it doesn't matter at what row of the table the data is.
In my head it looks like: "Cultivation", (:Date_time[:Timepoint == "End"] - :Date_time[:Timepoint == "Inoculation"]) / 3600
Unfortunately this doesn't work and I don't find any suitable code. Can you help me with it?
Thx,
Markus
PS: as I am new to Scripting in general and JMP in special, please excuse me if I use the wrong language or ask stupid questions.