psi {datagovsgR} | R Documentation |
PSI(PoullutantStandardIndex)
Description
This functions calls upon the PSI API from data.gov.sg and returns a data frame of the different measures of the PSI across 5 different areas in Singapores and the overall measure for the given data-time. This data provided by the API is updated hourly.
Usage
psi(date_time = "")
Arguments
date_time |
Defaults to current (SGD) time. Format: YYYY-MM-DDTHH:MM:SS |
Details
Note that this function is different from the 'PSI_summary' function, which returns the PSI measures for a given day.
Value
A dataframe containing various PSI measures across 5 corners of Singapore
Examples
psi()
psi(date = "2019-11-08T17:30:00")
psi(date = "2018-01-04T09:16:17")
[Package datagovsgR version 1.0.1 Index]