ug.journeys: Underground journey identifier

Description Usage Arguments Details

View source: R/ug.journeys.R

Description

Checks whether gaps in data start and end close to tube stations. If they do and the gap lasts less than two hours, the missing data is marked as a missed tube journey

Usage

1
ug.journeys(dataset, station.ppp)

Arguments

dataset

the dataset to check for missed tube journeys

station.ppp

a dataset of underground stations to measure distance to, in the spatstat format .ppp

Details

Firstly looks for gaps in data over 120 seconds and under 2 hours, then, for each start and end point of those gaps, it measures distance to the nearest underground station. If both start and end point are within 200m of an underground station, and it is not the same underground station, the missing data is marked as a potential underground journey, with a length of the gap in the data, in seconds


dprocter/modeid documentation built on May 19, 2019, 8:21 a.m.