disruption_to_tibble: Convert a single disruption to a tibble

View source: R/disruptions.R

disruption_to_tibbleR Documentation

Convert a single disruption to a tibble

Description

This function is designed to parse the content returned by the interior steps of the disruptions_on_route and disruptions_at_stop functions.

Usage

disruption_to_tibble(disruption)

Arguments

disruption

A disruption, as a list, returned by the disruptions API call.

Value

A tibble with the following columns:

  • disruption_id

  • title

  • url

  • description

  • disruption_status

  • disruption_type

  • published_on

  • last_updated

  • from_date

  • to_date

  • routes

  • stops

  • colour

  • display_on_board

  • display_status


ptvapi documentation built on Aug. 15, 2022, 5:09 p.m.