Learn R Programming

datagovsgR (version 0.3.0)

uvi_summary: UVI(Ultra-violet Index) Summary

Description

This functions calls upon the UVI API from data.gov.sg and returns UVI values for the given date. This data provided by the API is updated hourly.

Usage

uvi_summary(date = "")

Arguments

date

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

Value

A dataframe containing the UVI for the given date

Details

Note that there is only information on the UVI between 0700 and 1900. The returned data frame would only contain UVI values between this range.

Examples

Run this code
# NOT RUN {
uvi_summary()
uvi_summary(date = "2018-10-10")
uvi_summary(date = "2019-04-01")
# }

Run the code above in your browser using DataLab