sp_avail | R Documentation |
Input OD-table with Origins, Destinations, Population, Jobs, Catchment binary identification, and a pre-calculated impedance function f
sp_avail(x, o_id, d_id, pop, opp, r, f, alpha = 1)
x |
A data frame with origin-destination information, including identifiers for origins, destinations, population, opportunities, and a pre-calculated impedance function |
o_id |
The name of the column in data frame x that contains the unique origin identifiers |
d_id |
The name of the column in data frame x that contains the unique destination identifiers |
pop |
The name of the column in data frame x that contains the population |
opp |
The name of the column in data frame x that contains the opportunities |
r |
The name of the column in data frame x that contains catchment restrictions, or a column of 1s if there are none |
f |
The name of the column in data frame x that contains the values of the impedance function |
alpha |
A number string with the name of the column in data frame x that contains the values of the impedance function |
A vector with the number of opportunities available to o_id from d_id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.