Giter Club home page Giter Club logo

spatial-microsim-book's Introduction

Spatial microsimulation with R book project

This is the directory of code, sample data and content of a book on 'spatial microsimulation' to be published by CRC Press in the R Series.

The current working draft can be viewed online on the book's homepage. Anyone can contribute to this book here.

Any questions about the book? Want to review an early version? Please contact me on rob00x-at-gmail.com.

Building the book

To compile the book you will first need to download this repository. Do this by clicking the 'Download ZIP' button to the right or by cloning this repository. To clone this repo from a Linux terminal, for example, type:

git clone https://github.com/Robinlovelace/spatial-microsim-book.git

Then navigate into the downloaded folder and open the spatial-microsim-book.Rproj RStudio project file. The build.R file should contain everything you need to build the book, although you'll need to have installed a number of packages. These can be installed with the following command:

pkgs <- c("knitr", "rmarkdown", "png", "ggmap", "dplyr", "ipfp", "rgeos", "mipfp", "rgdal", "gridExtra", "tidyr", "mlogit")
install.packages(pkgs)

To install ipfp on Ubuntu (tested with version 14.04, the latest 'long-term support' version at the time of writing) a number of additional packages are required. These can be installed from the command line with:

sudo apt-get install liblapack-dev liblapack3 libopenblas-base libopenblas-dev

The book build also requires an up-to-date version of pandoc - install with:

sudo apt-get install pandoc

Building the website

The gh-pages branch of this repo contains the book's website. Merges to the gh-pages website branch should only be one way: master -> gh-pages:

# from within the master branch:
cp -v *.Rmd /tmp/ # copy all .Rmd files to temp folder
git checkout gh-pages # switch to website branch
mv /tmp/*.Rmd . # move copied files
rm book.* # remove book files

The build.R file in the gh-page branch contains further information on building the website.

For more information about GitHub, please see the free online book Pro Git.

spatial-microsim-book's People

Contributors

robinlovelace avatar emunozh avatar philmikejones avatar majazaloznik avatar richardellison avatar krlmlr avatar jgleeson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.