View source: R/metar_pressure.R
metar_pressure | R Documentation |
Extract and parse an air pressure value from METAR weather report.
metar_pressure(x, altimeter = FALSE, check = FALSE)
x |
character vector; a METAR weather report or reports. |
altimeter |
boolean; if FALSE, the default value, a pressure is returned in hPa, if TRUE a pressure is returned in inHg (inch of mercury). |
check |
logical; if TRUE the syntax of METAR reports will be checked. |
a numeric vector with air pressure in inHg or hPa.
metar_pressure("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
metar_pressure("CYUL 281800Z 13008KT 30SM BKN240 01/M06 A3005", altimeter = TRUE)
metar_pressure("201711271930 METAR LEMD 271930Z 02002KT CAVOK 04/M03 Q1025 NOSIG= NOSIG=")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.