This function read a table from an html page from National Weather Service website and output a dataframe

obhistory(id)

Arguments

id

one 4 character airport code

Value

a data frame with 7 variabes descripting the weather history of Weather and Temperature

Examples

obhistory("KAMW")
#> # A tibble: 71 x 9 #> code loc_name date time localtime time_UTC Weather Temperature #> <chr> <chr> <chr> <chr> <chr> <dttm> <fct> <dbl> #> 1 KAMW Ames, A… 04 14:53 2019-05-… 2019-05-04 19:53:00 A Few … 67 #> 2 KAMW Ames, A… 04 15:53 2019-05-… 2019-05-04 20:53:00 Partly… 68 #> 3 KAMW Ames, A… 04 16:53 2019-05-… 2019-05-04 21:53:00 A Few … 69 #> 4 KAMW Ames, A… 04 17:53 2019-05-… 2019-05-04 22:53:00 Partly… 69 #> 5 KAMW Ames, A… 04 18:53 2019-05-… 2019-05-04 23:53:00 Fair 67 #> 6 KAMW Ames, A… 04 19:53 2019-05-… 2019-05-05 00:53:00 Fair 61 #> 7 KAMW Ames, A… 04 20:53 2019-05-… 2019-05-05 01:53:00 Fair 56 #> 8 KAMW Ames, A… 04 21:53 2019-05-… 2019-05-05 02:53:00 Fair 55 #> 9 KAMW Ames, A… 04 22:53 2019-05-… 2019-05-05 03:53:00 Fair 54 #> 10 KAMW Ames, A… 04 23:53 2019-05-… 2019-05-05 04:53:00 Partly… 57 #> # … with 61 more rows, and 1 more variable: hday <chr>