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

View source: R/sp_avail.R

sp_availR Documentation

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

Description

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

Usage

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/AccessPack documentation built on March 20, 2022, 6:23 p.m.