pm25_summary {datagovsgR}R Documentation

PM2.5 Summary

Description

This functions calls upon the PM2.5 API from data.gov.sg and returns a data frame of the different measures of the PM2.5 across 5 different areas in Singapore for each hour. This data provided by the API is updated hourly from NEA.

Usage

pm25_summary(date = "")

Arguments

date

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

Details

Note that this function is different from the 'pm25' function, which returns the PM2.5 measures for a given date and time.

Value

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

Examples

pm25_summary()
pm25_summary(date = "2019-11-08")
pm25_summary(date = "2018-01-04")

[Package datagovsgR version 1.0.1 Index]