Learn R Programming

blvim (version 0.1.1)

location_names: Names of origin and destination locations in a spatial interaction model

Description

Those functions provide low level access to origin and destination local names. It is recommended to use origin_names() and destination_names() instead of location_names and location_names<-.

Usage

location_names(sim)

location_names(sim) <- value

Value

for location_names

NULL or a list with two components: origin

for the origin location names and destination for the destination location names. For location_names<-() the modified sim object or sim_list object.

Arguments

sim

a spatial interaction model object (an object of class sim) or a collection of spatial interaction models (an object of class sim_list)

value

a list with two components (see the returned value) or NULL

See Also

origin_names(), destination_names()

Examples

Run this code
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)
location_names(model)
location_names(model) <- NULL
location_names(model)
location_names(model) <- list(
  origin = french_cities$name[1:10],
  destination = LETTERS[1:10]
)
destination_names(model)
origin_names(model)

Run the code above in your browser using DataLab