Learn R Programming

ssrn (version 0.1.0)

transit_table: Create transit table

Description

Create transit table

Usage

transit_table(stations, ..., reverse = FALSE)

Arguments

stations

data.frame which set of stopping points recorded in order of stopping.

...

Arguments passed on to dplyr::across

.cols

<tidy-select> Columns to transform. Because across() is used within functions like summarise() and mutate(), you can't select or compute upon grouping variables.

reverse

Option to swap the order of the stopping points.

Examples

Run this code
# NOT RUN {
# The next stop is stored in the variable of column next_.
jreast_jt %>%
  transit_table()
# Switch between inbound and outbound lines.
jreast_jt %>%
  transit_table(reverse = TRUE)
# }

Run the code above in your browser using DataLab