Finding dwell time in R

Hi there, I am struggling with finding dwell time in R, I would really appreciate it if anyone could guide me on this.

I am trying to find the dwell time for each type on a daily basis, is there any possible way to do it? Thanks in advance!

What is 'dwell' time?

Dwell time is the duration between the 'type' first appeared time and last appeared time, and I am looking for dwell time on a daily basis.

Ok. If I was you I would use the lubridate and dplyr packages.
Use lubridate to split the datetime into seperste date and time fields. Then use dplyr to group the data frame by type and date, use summarise to take min and max of time. Then the difference between min and max time is dwell

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