transit_table: Create transit table

Description Usage Arguments Examples

View source: R/transit_table.R

Description

Create transit table

Usage

1
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

1
2
3
4
5
6
# 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)

ssrn documentation built on July 1, 2020, 10:22 p.m.