Handling Spatial Data with R

Spatial data are becoming increasingly common, as are the tools available in R to process it. It takes a little time to understand how R handles spatial data; this tutorial is designed to help get people started. It outlines how to create a simple spatial points object from as csv file, ambien load and export a shapefile and alter or add spatial projection information.

Data and Package Requirements:

London Sport Participation Shapefile. Download (requires unzipping).

London Cycle Hire Locations: Download.

Install the following packages (if you haven’t already done so):

maptools, rgdal (Mac users may wish to see here first).

Click here to view the tutorial code.

5 Comments

  1. Matt

    It appears most of this post has been lost? Is it reposted anywhere else? I’m very interested in reading it!

    (As far as I can tell, the post abruptly ends just after listing the requirements and stating, “Install the following packages (if you haven”, which is very unfortunate!)

  2. amar shanghavi

    Thank you for this great tutorial.
    I am new to R and thus might be missing something obvious.
    I am having a difficulty with one of the commands.

    After loading the rgdal library, I get the following error:
    EPSG <- make_EPSG()
    Error in make_EPSG() : Error opening epsg file

    I am not sure what the problem is. Your help would be very much appreciated.

Comments are closed.