Skip to content

Commit

Permalink
Updates for #4
Browse files Browse the repository at this point in the history
Former-commit-id: 45f31db
  • Loading branch information
Robinlovelace committed Apr 16, 2022
1 parent bc29a8e commit 1c4c9de
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ vignettes/crashes.Rds
README_files/figure-html/
README_files/libs
docs
GCCSA_2016_AUST_New.geojson
17 changes: 17 additions & 0 deletions vignettes/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,20 @@ @article{dennett_estimating_2012
url = {http://www.bartlett.ucl.ac.uk/casa/publications/working-paper-181},
note = {Citation Key: dennett{\_}estimating{\_}2012}
}

@article{dennett_modelling_2018,
title = {Modelling population flows using spatial interaction models},
author = {Dennett, Adam},
year = {2018},
month = {11},
date = {2018-11-11},
journal = {Australian Population Studies},
pages = {33--58},
volume = {2},
number = {2},
doi = {10.37970/aps.v2i2.38},
url = {https://www.australianpopulationstudies.org/index.php/aps/article/view/38},
note = {Number: 2
Citation Key: dennett{\_}modelling{\_}2018},
langid = {en}
}
16 changes: 15 additions & 1 deletion vignettes/si.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ vignette: >
%\VignetteIndexEntry{Tutorial: spatial interaction models with R}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
bibliography: references.bib
---

```{r, include = FALSE}
Expand All @@ -21,4 +22,17 @@ See the package's [README](https://robinlovelace.github.io/si/) for instructions
library(si)
```

This tutorial builds on @dennett_estimating_2012's pioneering tutorial.
This tutorial builds on @dennett_modelling_2018 (which in turn builds on @dennett_estimating_2012's pioneering [reproducible](https://github.com/adamdennett/SIModelling/blob/SIModelling-Edits/SimAus2.Rmd) tutorial on SIMs with R).
We start by importing open access data representing movement between zones in Australia (thanks to Adam Dennett for making the files accessible):

```{r}
u1 = "https://www.dropbox.com/s/0fg80nzcxcsybii/GCCSA_2016_AUST_New.geojson?raw=1"
aus = sf::read_sf(u1)
u2 = "https://www.dropbox.com/s/wi3zxlq5pff1yda/AusMig2011.csv?raw=1"
od_migration_original = read.csv(u2)
```

```{r, echo=FALSE, eval=FALSE}
sf::write_sf(aus, "GCCSA_2016_AUST_New.geojson")
piggyback::pb_upload("GCCSA_2016_AUST_New.geojson")
```

0 comments on commit 1c4c9de

Please sign in to comment.