District_Shape: Retrieve the geometry of district

District_ShapeR Documentation

Retrieve the geometry of district

Description

The function is used to download the geometry of districts in Taiwan, including County, town, village, and all the statistical level (SA2, SA1, and SA0).

Usage

District_Shape(district, time=NULL, out=F)

Arguments

district

Please fill in the district type. The valid input includes County, Town, Village, SA2, SA1, and SA0.

time

Please fill in the time of the data retrieved for statistical area (SA0, SA1, SA2). All statistical area will be downloaded based on the specified time. If the time does not match any in the dataset, the closest time of data will be downloaded. See here for all available time of dataset. Note that all county, town and village data will be the latest version, leave this argument blank (NULL); otherwise, this argument will be deprecated. The format of time should be YYYY-MM.

out

If the result should be exported to the local, please fill in the directory. The default value is FALSE, which does not export the data. Note that the directory must contain ".shp" when exporting simple feature.

Author(s)

Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au

Examples

District_Shape("County")
District_Shape("SA0", out="./taiwan_SA0.shp")

ChiaJung-Yeh/NYCU_TDX documentation built on Nov. 25, 2024, 6:57 a.m.