# update index
library(dplyr)
pedestrian %>%
group_by_key() %>%
mutate(Hour_Since = Date_Time - min(Date_Time)) %>%
update_tsibble(index = Hour_Since)
# update key: drop the variable "State" from the key
tourism %>%
update_tsibble(key = c(Purpose, Region))
Run the code above in your browser using DataLab