Learn R Programming

pmetar (version 0.5.1)

metar_hour: Get hour and minutes.

Description

Extract and parse hour and minutes from METAR weather report.

Usage

metar_hour(x)

Value

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

Arguments

x

character; a METAR weather report or reports.

Examples

Run this code
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")

Run the code above in your browser using DataLab