rasteriseCensus: Rasterise Census Subplace

Description Usage Arguments

Description

Rasterise a census polygon SPDF possibly containing summary data. The function randomly assign the correct number of sample units in each of a number of categories e.g. energy carrier for heating: as summarised in each row of the SPDF as points to a polygon It can be used to: make a total make number of people make sex distribution make age distribution

Usage

1
2
3
4
5
rasteriseCensus(x, ref = NULL, cleanSP = TRUE, spcode = "SP_Name",
  weightraster = NULL, verbose = FALSE, refres = NULL,
  drpnames = c("ID", "Geometry_s", "GAVPrimar0", "Geometry_1", "OBJECTID",
  "SP_CODE", "SP_Code", "MP_CODE", "MP_Code", "MN_CODE", "MN_MDB_C", "DC_MN_C",
  "Shape_Leng", "Shape_Area", "fakeData", "GAVPrimary", "Total"), ...)

Arguments

x

A SpatialPolygonsDataFrame

ref

An extent object

cleanSP

Logical Do you want to remove rows where *spcode* is NA

spcode

Character name of variable for which rows are removed when NA

weightraster

Raster with weights - typically a population raster like the utput from worldpop

verbose

Print messages or not

refres

Numeric vector of length 2 (x,y): A reference resolution

drpnames

A character vector of column names that should not be included

...

Arguments to be passed to/from other methods


christiaanpauw/AQoffset documentation built on May 13, 2019, 6:57 p.m.