Two-Step Floating Catchment Area method

spai_2sfca(p, s, W, step = 2)

Arguments

p

numeric vector, number of population at origin locations

s

numeric vector, capacity of services at supply locations

W

numeric matrix, distance or time matrix

step

numeric, number of the steps of the method to perform

Value

data.frame, depending on selected step

Examples

p <- 1:4
s <- 1:6
W <- matrix(1:24, ncol = 4, nrow = 6)
spai <- spai_2sfca(p, s, W, step = 2)