I am working on measuring and plotting a health metric (e.g. Blood pressue) everyday (multiple times every day).

I tag everyday's reading with some tags that happened that day e.g. [run, smoke] (which means I ran for sometime, and I smoked a cigarette that day).

Is there a way to measure time-delayed response of say [smoke] on health metric [Blood pressure]. I can't look for health metrics tagged with [smoke], as that would only show values of metrics on the day I smoked.  I want to know, and plot, value of health metric, and how it has changed after the event (smoke) happened.

How do I measure this using R.

I am very new to this. Is there a technical term for what I am trying to do.