r-spatial / spdep

Spatial Dependence: Weighting Schemes and Statistics
https://r-spatial.github.io/spdep/
116 stars 26 forks source link

Refactor Univariate Local Join Count #103

Closed JosiahParry closed 1 year ago

JosiahParry commented 1 year ago

This pull request refactors the implementation of local_joincount_uni() to follow the pattern that was explicated in https://github.com/r-spatial/spdep/pull/99 and vastly increases the speed of the initial implementation in https://github.com/r-spatial/spdep/pull/94.

This PR does not implement zero.policy or na.action arguments. I personally think that the presence of an NA in fx should return an error.