Learn R Programming

weathR (version 0.1.0)

point_today: Weather Observed Today at a Point

Description

Weather Observed Today at a Point

Usage

point_today(lat, lon, timezone = -1, dir_numeric = FALSE)

Value

Simple features point corresponding to the given station identifier with recent meteorological forecast values for today.

Arguments

lat

Latitude.

lon

Longitude.

timezone

The nominal timezone for the forecast. One of OlsonNames() or -1 for local time. Defaults to -1.

dir_numeric

TRUE for numeric directions, FALSE for character directions; defaults to FALSE.

Examples

Run this code
# Produce a GT summary of the weather thus far for a given lat/lon
# \donttest{
point_today(lat = 33, lon = -80) %>%
as.data.frame() %>%
 dplyr::mutate(time = as.POSIXct(time) %>% format("%H:%M")) %>%
  dplyr::select(time, temp, dewpoint, humidity, wind_speed)
 # }

Run the code above in your browser using DataLab