Learn R Programming

blvim (version 0.1.1)

origin_names: Names of origin locations in a spatial interaction model

Description

Functions to get or set the names of the origin locations in a spatial interaction model (or in a collection of spatial interaction models).

Usage

origin_names(sim)

origin_names(sim) <- value

Value

for origin_names

NULL or a character vector with one name per origin locations in the model. for origin_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 character vector of length equal to the number of origin locations, or NULL (vectors of adapted length are converted to character vectors)

See Also

location_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)
origin_names(model)
origin_names(model) <- french_cities$name[1:10]
origin_names(model)

Run the code above in your browser using DataLab