latest_observation: Get latest station observation

View source: R/latest-obs.R

latest_observationR Documentation

Get latest station observation

Description

Get the latest most recent observation for a station.

Usage

latest_observation(station_id, pat = tempest_pat())

Arguments

station_id

(chr) station id

pat

see tempest_pat()

Value

list with station metadata, configured, units and point-in-time observation

References

Tempest API

Examples

## Not run: 
st <- tempest_station_meta()
latest_observation(st$stations$station_id)

## End(Not run)

hrbrmstr/tempestwx documentation built on May 7, 2022, 4:49 p.m.