Description Usage Arguments Value Examples
View source: R/ShapefileFunctions.R
A wrapper for rgdal's readOGR() function to demonstrate how the Big___ objects included in the package were created.
1 | ReadOzShapefile(ShapefileURL, LGAorPOA)
|
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. |
A SpatialPolygonsDataFrame: 545 LGAs (18 null geometries get dropped) or 2668 postcodes (2 null geometries dropped).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.