ReadOzShapefile: Read in ABS Shapefile

Description Usage Arguments Value Examples

View source: R/ShapefileFunctions.R

Description

A wrapper for rgdal's readOGR() function to demonstrate how the Big___ objects included in the package were created.

Usage

1
ReadOzShapefile(ShapefileURL, LGAorPOA)

Arguments

ShapefileURL

A string pointing to the top-level directory where the Australian Bureau of Statistic files (see source) were extracted. This should be the folder containing a .dbf, .prj, .shp, .shx and .xml

LGAorPOA

A string, either "LGA" or "POA". This will be converted to the ABS' name for the appropriate layer, "LGA_2016_AUST" or "POA_2016_AUST" respectively.

Value

A SpatialPolygonsDataFrame: 545 LGAs (18 null geometries get dropped) or 2668 postcodes (2 null geometries dropped).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# With a file structure like:
#
# Working directory/
#     ABS Shapefiles/
#         LGAs/
#             LGA_2016_AUST.dbf
#             LGA_2016_AUST.prj
#             LGA_2016_AUST.shp
#             LGA_2016_AUST.shx
#             LGA_2016_AUST.xml

ReadOzShapefile("ABS Shapefiles/LGAs", "LGA")


## End(Not run)

mjkerrison/OzMap documentation built on Dec. 27, 2019, 2:18 a.m.