uvi: UVI(Ultra-violet Index)

View source: R/UVI.R

uviR Documentation

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 = "")

Arguments

date_time

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

Value

A dataframe containing the current and past hourly UVI

Examples

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

datagovsgR documentation built on Jan. 15, 2023, 5:07 p.m.