Learn R Programming

datagovsgR (version 1.0.1)

uvi: UVI(Ultra-violet Index)

Description

This functions calls upon the UVI API from data.gov.sg and returns a data frame of the different measures of the UVI across Singapore and returns the closest UVI value presently and for the past few hours. This data provided by the API is updated hourly.

Usage

uvi(date_time = "")

Value

A dataframe containing the current and past hourly UVI

Arguments

date_time

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

Examples

Run this code
uvi()
uvi(date = "2022-09-03T16:45:23")
uvi(date = "2021-12-06T11:01:55")

Run the code above in your browser using DataLab