R-code: findintervals and calculate mean-values

Hi everyone,

im currently starting to work with rstudio for analyzing data in university and i have an issue i can't fix on my own.
I have several files with thousands of data lines (raw data). What I wanted to do is to determine intervals under several conditions and then to calculate mean-values for these intervals automatically in two different ways:

(1) Finding several intervals which last for exactly 10 seconds when (simultaneously) two more parameters are zero and then to calculate mean-values for these intervals.
(2) I can determine the exact times. I want R to identify intervals that i determine and to calculate mean-values for these intervals.

I hope I was able to describe what I want to do and that the community can help me.

Thanks a lot
Ikhanda

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.