Names of destination locations in a spatial interaction model
Source:R/sim_names.R
destination_names.RdFunctions to get or set the names of the destination locations in a spatial interaction model (or in a collection of spatial interaction models).
Value
for destination_names NULL or a character vector with one name
per destination locations in the model. for destination_names<- the
modified sim object or sim_list object.
Examples
distances <- french_cities_distances[1:10, 1:10]
production <- rep(1, 10)
attractiveness <- rep(1, 10)
## the row/column names of the cost matrix are used for the location
model <- static_blvim(distances, production, 1.5, 1 / 250000, attractiveness)
destination_names(model)
#> [1] "75056" "13055" "69123" "31555" "06088" "44109" "34172" "67482" "33063"
#> [10] "59350"
destination_names(model) <- french_cities$name[1:10]
destination_names(model)
#> [1] "Paris" "Marseille" "Lyon" "Toulouse" "Nice"
#> [6] "Nantes" "Montpellier" "Strasbourg" "Bordeaux" "Lille"