Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
geotheory committed Mar 10, 2015
0 parents commit 8c4c2db
Show file tree
Hide file tree
Showing 26 changed files with 160 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: londonShapefiles
Type: Package
Title: What the package does (short line)
Version: 1.0
Date: 2015-03-10
Author: Who wrote it
Maintainer: Who to complain to <[email protected]>
Description: More about what it does (maybe more than one line)
License: What license is it under?
5 changes: 5 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generated by roxygen2 (4.1.0): do not edit by hand

export(load_la)
export(load_lon)
export(load_thames)
9 changes: 9 additions & 0 deletions R/load_la.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#' London's local authority boundaries
#' @description Load shapefile of London's local authority boundaries (GLA boroughs) as a SpatialPolygonsDataFrame
#' @return Object 'lon', a 33 row SpatialPolygonsDataFrame
#' @export
#' @example examples/load_la.R
load_la = function(){
require(maptools)
la <<- readShapePoly('data/local_authorities.shp', proj4string=CRS('+init=epsg:27700'))
}
9 changes: 9 additions & 0 deletions R/load_lon.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#' London's outline
#' @description Load shapefile of London's outline (Greater London Authority) as a SpatialPolygonsDataFrame
#' @return Object 'lon', a single row SpatialPolygonsDataFrame
#' @export
#' @example examples/load_lon.R
load_lon = function(){
require(maptools)
lon <<- readShapePoly('data/london_outline_simple.shpp', proj4string=CRS('+init=epsg:27700'))
}
9 changes: 9 additions & 0 deletions R/load_thames.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#' River Thames
#' @description Load shapefile of River Thames as a SpatialPolygonsDataFrame
#' @return Object 'lon', a 1 row SpatialPolygonsDataFrame
#' @export
#' @example examples/load_thames.R
load_thames = function(){
require(maptools)
la <<- readShapePoly('data/river_thames.shp', proj4string=CRS('+init=epsg:27700'))
}
Empty file added R/londonShapefiles.R
Empty file.
Binary file added data/local_authorities.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/local_authorities.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Transverse_Mercator",GEOGCS["GCS_OSGB 1936",DATUM["D_OSGB_1936",SPHEROID["Airy_1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",49],PARAMETER["central_meridian",-2],PARAMETER["scale_factor",0.9996012717],PARAMETER["false_easting",400000],PARAMETER["false_northing",-100000],UNIT["Meter",1]]
Binary file added data/local_authorities.shp
Binary file not shown.
Binary file added data/local_authorities.shx
Binary file not shown.
Binary file added data/london_outline_simple.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/london_outline_simple.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Transverse_Mercator",GEOGCS["GCS_OSGB 1936",DATUM["D_OSGB_1936",SPHEROID["Airy_1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",49],PARAMETER["central_meridian",-2],PARAMETER["scale_factor",0.9996012717],PARAMETER["false_easting",400000],PARAMETER["false_northing",-100000],UNIT["Meter",1]]
Binary file added data/london_outline_simple.shp
Binary file not shown.
Binary file added data/london_outline_simple.shx
Binary file not shown.
Binary file added data/river_thames.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/river_thames.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Transverse_Mercator",GEOGCS["GCS_OSGB 1936",DATUM["D_OSGB_1936",SPHEROID["Airy_1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",49],PARAMETER["central_meridian",-2],PARAMETER["scale_factor",0.9996012717],PARAMETER["false_easting",400000],PARAMETER["false_northing",-100000],UNIT["Meter",1]]
Binary file added data/river_thames.shp
Binary file not shown.
Binary file added data/river_thames.shx
Binary file not shown.
1 change: 1 addition & 0 deletions examples/load_la.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
load_la.R()
1 change: 1 addition & 0 deletions examples/load_lon.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
load_lon.R()
1 change: 1 addition & 0 deletions examples/load_thames.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
load_thames.R()
18 changes: 18 additions & 0 deletions londonShapefiles.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
18 changes: 18 additions & 0 deletions man/load_la.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/load_la.R
\name{load_la}
\alias{load_la}
\title{London's local authority boundaries}
\usage{
load_la()
}
\value{
Object 'lon', a 33 row SpatialPolygonsDataFrame
}
\description{
Load shapefile of London's local authority boundaries (GLA boroughs) as a SpatialPolygonsDataFrame
}
\examples{
load_la.R()
}

18 changes: 18 additions & 0 deletions man/load_lon.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/load_lon.R
\name{load_lon}
\alias{load_lon}
\title{London's outline}
\usage{
load_lon()
}
\value{
Object 'lon', a single row SpatialPolygonsDataFrame
}
\description{
Load shapefile of London's outline (Greater London Authority) as a SpatialPolygonsDataFrame
}
\examples{
load_lon.R()
}

18 changes: 18 additions & 0 deletions man/load_thames.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/load_thames.R
\name{load_thames}
\alias{load_thames}
\title{River Thames}
\usage{
load_thames()
}
\value{
Object 'lon', a 1 row SpatialPolygonsDataFrame
}
\description{
Load shapefile of River Thames as a SpatialPolygonsDataFrame
}
\examples{
load_thames.R()
}

41 changes: 41 additions & 0 deletions man/londonShapefiles-package.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
\name{londonShapefiles-package}
\alias{londonShapefiles-package}
\alias{londonShapefiles}
\docType{package}
\title{
What the package does (short line)
~~ package title ~~
}
\description{
More about what it does (maybe more than one line)
~~ A concise (1-5 lines) description of the package ~~
}
\details{
\tabular{ll}{
Package: \tab londonShapefiles\cr
Type: \tab Package\cr
Version: \tab 1.0\cr
Date: \tab 2015-03-10\cr
License: \tab What license is it under?\cr
}
~~ An overview of how to use the package, including the most important functions ~~
}
\author{
Who wrote it

Maintainer: Who to complain to <yourfault@somewhere.net>
~~ The author and/or maintainer of the package ~~
}
\references{
~~ Literature or other references for background information ~~
}
~~ Optionally other standard keywords, one per line, from file KEYWORDS in the R ~~
~~ documentation directory ~~
\keyword{ package }
\seealso{
~~ Optional links to other man pages, e.g. ~~
~~ \code{\link[<pkg>:<pkg>-package]{<pkg>}} ~~
}
\examples{
~~ simple examples of the most important functions ~~
}

0 comments on commit 8c4c2db

Please sign in to comment.