# NOT RUN {
data(SPrail)
# I want to identify observations at the route (origin-destination)/year level
# Let's make it a character variable so we can tell at a glance what route we're talking
SPrail <- SPrail %>%
dplyr::mutate(route_id = id_variable(origin, destination, .method = "character"))
# }
Run the code above in your browser using DataLab