Learn R Programming

blvim (version 0.1.1)

production: Extract the production constraints from a spatial interaction model object

Description

Extract the production constraints from a spatial interaction model object

Usage

production(sim, ...)

Value

a vector of production constraints at the origin locations

Arguments

sim

a spatial interaction model object

...

additional parameters

See Also

attractiveness(), destination_flow()

Examples

Run this code
distances <- french_cities_distances[1:10, 1:10] / 1000 ## convert to km
production <- log(french_cities$population[1:10])
attractiveness <- log(french_cities$area[1:10])
model <- static_blvim(distances, production, 1.5, 1 / 250, attractiveness)
production(model)
## the names of the production vector are set from the distance matrix
## we remove them for testing equality
all.equal(as.numeric(production(model)), production)

Run the code above in your browser using DataLab