popIntensity: Computes the local population intensity for all groups based...

Description Usage Arguments Value Author(s) References

View source: R/segreg_prep.R

Description

Computes the local population intensity for all groups based on a time/distance matrix.

Usage

1
popIntensity(matrix, pop, bandwidth = 60, weightmethod = "gaussian")

Arguments

matrix

A data frame with travel time/distance matrix (origin, destination, travel_time).

pop

A data frame structured as id and columns with number of population for each group.

bandwidth

A numeric bandwidth for neighborhood (same unit of matrix). Defaults to 60 (minutes).

weightmethod

A string object to choose the method to be used: gaussian , bi-square and moving window. Defaults to gaussian.

Value

A data frame with population intensity for all groups.

Author(s)

Beatriz Moura dos Santos

References

Smith, Goodchild & Longley (2018). Geospatial Analysis. A Comprehensive Guide to PrinciplesTechniques and Software Tools. https://www.spatialanalysisonline.com/HTML/index.html


biamouras/accSeg documentation built on Nov. 19, 2020, 8:07 a.m.