transform_census: Transform nz census data

Description Usage Arguments Value

Description

Performs various common manipulation tasks on the census data. Mainly meant for easy transformations such as whether to include the GIS data, what its CRS system should be (defaults to 2193 – NZTM) and whether it should come in the wide (default) or long format.

Usage

1
2
transform_census(.data, gis = TRUE, crs = 2193, long = FALSE,
  clean = FALSE)

Arguments

.data

The data set to be passed.

gis

If the data set should include the gis column (defaults to TRUE).

crs

The desired Coordinate Reference System of the data set (defaults to 2193). Only important if the data includes a geometry column.

long

Whether the data should be returned in the long format or not.

clean

True/False on whether to separate the original census column headers into year, 'topics' and 'variables'.

Value

It returns either a tibble or a simple features dataframe.


phildonovan/nzcensr documentation built on May 12, 2019, 7:20 p.m.