pm25 {datagovsgR} | R Documentation |
PM2.5
Description
This functions calls upon the PM2.5 API from data.gov.sg and returns a data frame of the different measures of PM2.5 across 5 different areas in Singapore. This data provided by the API is updated hourly from NEA.
Usage
pm25(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 'pm25_summary' function, which returns the PM2.5 measures for a given day.
Value
A dataframe containing various PM2.5 measures across 5 corners of Singapore
Examples
pm25()
pm25(date_time = "2019-11-08T17:30:00")
pm25(date_time = "2018-01-04T09:16:17")
[Package datagovsgR version 1.0.1 Index]