EPAdownload: A Self-made function for downloading hourly monitoring data...

View source: R/EPAdownload.R

EPAdownloadR Documentation

A Self-made function for downloading hourly monitoring data from Taiwan EPA.

Description

A preferred time interval can be selected by defining the starting and ending time. The function setwd() is recommended to use beforhand to specify the path to the preferred folder.

Usage

EPAdownload(start.time, end.time = NULL, epa.site = NULL, outputname = "EPA")

Arguments

start.time

The starting time of data downloaded. The date format follows "YYYY-mm-dd HH:MM". Nevertheless, formats including "YYYY", "YYYY-mm", and "YYYY-mm-dd" are also feasible. Note that data is only available since July, 1982.

end.time

The ending time of data downloaded. The date format follows "YYYY-mm-dd HH:MM". Nevertheless, formats including "YYYY", "YYYY-mm" are also feasible. The default is current local time.

epa.site

One or more than one EPA site can be selected by inputting its Chinese name. The default is all sites.

outputname

The name of the output file. The default is "EPA".


lsyang99/changhua.sensors documentation built on May 1, 2022, 9:03 p.m.