cbd_city: DF transform to CBD urban model

Description Usage Arguments Value

View source: R/cbd_city.R

Description

This function allows you to change the origins and destination of flows stored into a dataframe to simulate a Central Business District urban model. City considered as the main city of the region is designed as candidate and flows (destinations only) are moved from non-candidate cities to the candidate city. The origins are moved into from the candidate city to the non-candidate city, so that every jobs are in the main city, and workers in the suburbs.

Usage

1
cbd_city(pol, idpol, cand, tabflows, idori, iddes, idflow)

Arguments

pol

An sf object of the cities

idpol

A character string of the column containing the id of the pol object

cand

A character string of the column containing binary (1, 0) candidate value of the pol object (main city must be equal to 1 and 0 for the rest)

tabflows

A data.frame of flows between origins and destinations (long format matrix containing, at least, origins, destinations, flows)

idori

A character string giving the origin field name in tabflows

iddes

A character string giving the destination field name in tabflows

idflow

A character string giving the flow field name in tabflows

Value

A data.frame of flows as tabflows with origins and destinations changed


Geographie-cites/toyspace documentation built on July 11, 2019, 6:07 p.m.