populationcorrespondence: Construct a population-weighted correspondence betwene two...

Description Usage Arguments Examples

View source: R/population_correspondence.R

Description

Population weights are determined from Census Mesh Block files (which you supply)

Usage

1
2
populationcorrespondence(from, to, from.ID, to.ID, MB,
  URcode = "Persons_Usually_Resident", filename = NULL)

Arguments

from

The simple feature geography you wish to correspond from

to

The simple feature geography you wish to correspond to

from.ID

The column name that identifies the areas in the from geography

to.ID

The column name that identifies the areas in the to geography

MB

A (whole of Australia) mesh block simple feature geography

URcode

The column name in MB that has the persons usually resident count

filename

(optional) A csv filename to write the correspondence to when done

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
  NSW <- read_sf("extdata/ASGC2006/MB_NSW_2006_census.shp")
  VIC <- read_sf("extdata/ASGC2006/MB_Vic_2006_census.shp")
  QLD <- read_sf("extdata/ASGC2006/MB_Qld_2006_census.shp")
  SA <- read_sf("extdata/ASGC2006/MB_SA_2006_census.shp")
  WA <- read_sf("extdata/ASGC2006/MB_WA_2006_census.shp")
  TAS <- read_sf("extdata/ASGC2006/MB_Tas_2006_census.shp")
  NT <- read_sf("extdata/ASGC2006/MB_NT_2006_census.shp")
  ACT <- read_sf("extdata/ASGC2006/MB_ACT_2006_census.shp")
  OT <- read_sf("extdata/ASGC2006/MB_OT_2006_census.shp")
  AUST_MB <- rbind(NSW, VIC, QLD, SA, WA, TAS, NT, ACT, OT)
  rm(list = c("NSW", "VIC", "QLD", "SA", "WA", "TAS", "NT", "ACT", "OT"))
  ASGS11_SA2 <- read_sf("extdata/ASGS2011/SA2_2011_AUST.shp")
  ASGC06_SLA <- read_sf("extdata/ASGC2006/SLA06aAUST.shp")
  populationcorrespondence(ASGC06_SLA, ASGS11_SA2, "SLA_CODE06", "SA2_MAIN11", AUST_MB, "TURPOP2006")

## End(Not run)

angusmoore/absgeoutils documentation built on May 28, 2019, 4:57 p.m.