sp_avail: Input OD-table with Origins, Destinations, Population, Jobs,...

Description Usage Arguments Value

View source: R/sp_avail.R

Description

Input OD-table with Origins, Destinations, Population, Jobs, Catchment binary identification, and a pre-calculated impedance function f

Usage

1
sp_avail(x, o_id, d_id, pop, opp, r, f, alpha = 1)

Arguments

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

Value

A vector with the number of opportunities available to o_id from d_id


soukhova/AccessPack2 documentation built on Dec. 29, 2021, 12:26 a.m.