I have a data frame that looks like this:
head(data1)
# A tibble: 6 × 10
Date Time Axis1 Axis2 Axis3 VM Standing Stepping Cycling
<date> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 2022-03-17 11:29:00 0 0 0 0 0 0 0
2 2022-03-17 11:29:00 0 0 0 0 0 0 0
3 2022-03-17 11:29:00 0 0 0 0 0 0 0
4 2022-03-17 11:29:00 0 0 0 0 0 0 0
5 2022-03-17 11:29:00 0 0 0 0 0 0 0
6 2022-03-17 11:29:00 0 0 0 0 0 0 0
# … with 1 more variable: New_Sitting <dbl>
It has a data point every second all day, every day for a week. Is it possible to remove the data points outside of the workday? (Say only keep the data between 7am-5pm of the weekdays)