Dear community
Thank you so much for your help. The code runs fine. I have two more questions:
The first, I forgot to ask, I need to calculate AUC from minute 0 to 240 only.
The second one, in case on missing data (in rare cases, some of the glucose sensors didn't catch the last hour of glucose readings), how can i modify the code to compensate for it? Thank you very much.
P