get_pct_within_traveltime: Get percentage of residents within a certain travel time of...

View source: R/population_weighting.R

get_pct_within_traveltimeR Documentation

Get percentage of residents within a certain travel time of facilities

Description

This function takes a long origin-destination (OD) table between dissemination blocks (DBs) and facilities and computes, for each ONS neighbourhood and Ottawa as a whole, the percent of residents within a given travel distance of those amenities.

Usage

get_pct_within_traveltime(walk_table, minute_threshold = 15)

Arguments

walk_table

A tbl_df with at minimum the columns DBUID and time, giving travel time in seconds.

minute_threshold

Threshold in minutes. Defaults to 15.

Details

OD tables can be generated using the Valhalla routing system and the R package valhallr.

Value

A tbl_df with columns ONS_ID and pct_covered


Ottawa-Neighbourhood-Study/onsr documentation built on June 19, 2022, 11:46 a.m.