Closed mitchelloharawild closed 4 years ago
Is this what's supposed to return?
library(tsibble)
library(dplyr, warn.conflicts = FALSE)
pedestrian %>%
as_tibble() %>%
group_by(Date_Time) %>%
summarise(Sensor = first(Sensor))
#> `summarise()` ungrouping output (override with `.groups` argument)
#> # A tibble: 17,542 x 2
#> Date_Time Sensor
#> <dttm> <chr>
#> 1 2015-01-01 00:00:00 Birrarung Marr
#> 2 2015-01-01 01:00:00 Birrarung Marr
#> 3 2015-01-01 02:00:00 Birrarung Marr
#> 4 2015-01-01 03:00:00 Birrarung Marr
#> 5 2015-01-01 04:00:00 Birrarung Marr
#> 6 2015-01-01 05:00:00 Birrarung Marr
#> 7 2015-01-01 06:00:00 Birrarung Marr
#> 8 2015-01-01 07:00:00 Birrarung Marr
#> 9 2015-01-01 08:00:00 Birrarung Marr
#> 10 2015-01-01 09:00:00 Birrarung Marr
#> # … with 17,532 more rows
Created on 2020-08-26 by the reprex package (v0.3.0)
Yes, this is what I had expected.
Created on 2020-08-10 by the reprex package (v0.3.0)