View source: R/population_weighting.R
ons_pop_weight_dbs | R Documentation |
This function calculates neighbourhood-level population-weighted average travel times and distances from each dissemination block (DB) to the n-nearest facilities. Each DB is linked to the single neighbourhood it overlaps the most
It works well with the function valhallr::od_table()
from the valhallr
package.
ons_pop_weight_dbs(od_table, n_closest = 5, verbose = TRUE)
od_table |
A tidy origin-destination table with (at least) columns
|
n_closest |
The number of closest facilities to consider. Default is 5. |
verbose |
Boolean. Would you like lots of updates in the console? |
A 111-row tibble with population-weighted travel distances and times for each ONS neighbourhood.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.