Learn R Programming

datagovsgR (version 0.3.3)

psi_summary: PSI(PoullutantStandardIndex) Summary

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 date. This data provided by the API is updated hourly.

Usage

psi_summary(date = "")

Value

A dataframe containing various PSI measures across 5 corners of Singapore and time of day. Dependent on the data availible, not all results range from 0000 to 2300.

Arguments

date

Defaults to current (SGD) time. Format: YYYY-MM-DDTHH:MM:SS

Details

Note that this function is different from the `PSI` function, which returns the PSI measures for a given date-time.

Examples

Run this code
psi_summary()
psi_summary(date = "2019-11-08")
psi_summary(date = "2018-01-04")

Run the code above in your browser using DataLab