I have a measurement of an object with xyz coordinates and a timeline in ms. My CSV looks like this:

```
TimeInSec  X.6   Y.6  Z.6
0.000000    -1.383422   -0.058891   0.023290    
0.004167    -1.387636   -0.058947   0.023584
0.008333    -1.391491   -0.058972   0.023989
...

```

I want to find the row in my dataset where the xyz coordinates stop changing (within a threshold). The key feature I want is a time from row 0 to the stop point of my object. 

My Code:

```
dummy.data <- read.csv (file="D:\\tmp\\dummy.csv", header = TRUE, skip = 6
dummy.data %>%
  gather(key,value, X.6, X.7, X.8, Y.6, Y.7, Y.8, Z.6, Z.7, Z.8) %>%
  ggplot(aes(x=Time..Seconds., y=value, colour=key)) +
  geom_line()

```

Many Thanks for your help!

Sample Graph:
[Sample Graph](https://i.stack.imgur.com/N1zRp.png)

Here is the link to the RawData CSV [RawData](https://wetransfer.com/downloads/f39fe3e537f74ef7799d9eb66b9ce6ad20200303140038/2dd732)