Description Usage Arguments Value
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.
1 2 | transform_census(.data, gis = TRUE, crs = 2193, long = FALSE,
clean = FALSE)
|
.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'. |
It returns either a tibble or a simple features dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.