https://github.com/riatelab/spatialposition
R package for computing spatial position models
https://github.com/riatelab/spatialposition
accessibility cran potential r r-package spatial-analysis stewart-potentials
Last synced: 3 months ago
JSON representation
R package for computing spatial position models
- Host: GitHub
- URL: https://github.com/riatelab/spatialposition
- Owner: riatelab
- Created: 2015-03-26T07:32:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-13T09:35:45.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T20:49:37.161Z (3 months ago)
- Topics: accessibility, cran, potential, r, r-package, spatial-analysis, stewart-potentials
- Language: R
- Homepage: https://rgeomatic.hypotheses.org/category/spatialposition
- Size: 715 KB
- Stars: 31
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- Citation: CITATION.cff
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# SpatialPosition
[](https://CRAN.R-project.org/package=SpatialPosition)
[](https://github.com/riatelab/SpatialPosition/actions/workflows/R-CMD-check.yaml)
R package for computing spatial position models:
* Stewart potentials :warning:
* Reilly catchment areas
* Huff catchment areas:warning: **Functions related to Stewart's potential are deprecated. Please use the [`potential`](https://riatelab.github.io/potential/) package instead.**
## Installation
### From CRAN
Stable version
```{r}
install.packages("SpatialPosition")
```### From GitHub
Development version / unstable
```{r}
require(remotes)
remotes::install_github("riatelab/SpatialPosition")
```### From Archive
Version 2.0.0 of the package is a major release that should not break old code.
Anyway, in case of problem you can use these lines to get a previous version of the package.
```{r}
packageurl <- "https://cran.r-project.org/src/contrib/Archive/SpatialPosition/SpatialPosition_1.2.0.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
```## Demo
Vignettes contain commented scripts on how to use `SpatialPostion`.* Introduction to the SpatialPosition package :
```{r}
vignette(topic = "SpatialPosition")
```* Stewart Potentials: a Use Case :
```{r}
vignette(topic = "StewartExample")
```