Hospital: Retrieve the hospital data with given month

HospitalR Documentation

Retrieve the hospital data with given month

Description

The function is used to download the hospital data of districts in Taiwan for the specific time, including county, town, minimum statistical area (SA0), statistical area 1 (SA1), and statistical area 2 (SA2). The data is downloaded from Social Economic Geographic Information System (SEGIS) by Ministry of the Interior. The data can be pure text or shapefile with the polygon of specific district.

Usage

Hospital(district, time, dtype="text", out=F)

Arguments

district

Please fill in the district type. The valid input includes County, Town, SA0 (minimum statistical area), SA1 (statistical area 1), SA2 (statistical area 2).

time

The time (year-month) of the data. The format of time should be YYYY-MM. Note that hospital data is updated half a year, only June and December are provided.

dtype

The class of data, including text (data frame) and sf (simple feature). The default value is text.

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.

Value

Columns definition of the results are summarized below.

H_CNT Number of hospitals.
H_BED Number of beds.
H_SRVP Number of people served per hospital.
H_SRVB Number of beds per 1000 people.

Author(s)

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

Examples

Hospital(district="County", time="2010-06")
Hospital(district="SA2", time="2022-06", age=T, dtype="sf", out="./taiwan_SA2_hospital.shp")

ChiaJung-Yeh/NYCU_TDX documentation built on Aug. 28, 2024, 10:43 p.m.