metar_hour: Get hour and minutes.

View source: R/metar_hour.R

metar_hourR Documentation

Get hour and minutes.

Description

Extract and parse hour and minutes from METAR weather report.

Usage

metar_hour(x)

Arguments

x

character; a METAR weather report or reports.

Value

a character vector with the METAR time in the format HH:mm.

Examples

metar_hour("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_hour("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005 RMK CI5 SLP180")
metar_hour("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025")


prcwiek/pmetar documentation built on Oct. 28, 2023, 1:12 a.m.