Skip to contents

A function to get a nested OD data subset by school

Usage

prepare_od(od_data, destination.col, trips.col, distance.threshold)

Arguments

od_data

original od dataset

destination.col

string with name of the column with destination id

trips.col

string with name of the column with number of trips for each OD pair

distance.threshold

distance threshold in metres to create a subset of the routes

Value

a nested tibble