get_pollutants: Gets pollutant levels in Singapore for specified set of...

Description Usage Arguments Details Value Examples

Description

Returns a dataframe of pollutant levels for dates between starting and final date for national and 5 subnational regions.

Usage

1
get_pollutants(from, to, natl_only = T)

Arguments

from

Starting date. Must be a character string, in "YYYY-MM-DD" format.

to

Final date, inclusive. Must be a character string, in "YYYY-MM-DD" format.

natl_only

True or False, defaults to true. If true, returns only national values. If false, returns data for national and 5 subnational regions.

Details

User inputs a starting and final date. Hourly pollutant levels are then given for all dates from the starting date to the final date, inclusive. Data is provided for national and 5 subnational regions, in the form of 12 pollutant indices: O3 Sub-Index, PM10 24-hourly, PM10 Sub-Index, CO Sub-Index, PM2.5 24-Hourly, SO2 Sub-Index, CO 8-Hour-Max, NO2 1-Hour-Max, SO2 24-Hourly, PM2.5 Sub-Index, PSI 24-Hourly and O3 8-Hour Max

Value

Pollutant indices readings in Singapore for national and subnational regions for selected dates.

Examples

1
2
get_pollutants("2017-12-31", "2018-01-04")
#' get_pollutants("2018-07-05", "2018-08-06", natl_only = F)

andrew-loh/neaSG documentation built on May 30, 2019, 1:36 p.m.