timtrice / HURDAT

HURDAT is a dataset of best-track analysis for Atlantic and NE Pacific cyclones. This R package scrapes and parses that dataset.
https://hurdat.timtrice.net/
Other
11 stars 4 forks source link

Problem with the regex for the first Huricane (AL) #7

Open TibMonnet opened 3 years ago

TibMonnet commented 3 years ago

Hello, the Key value and other tags from the first row of data is not read by the get_hurdat function (for the Atlantic Huricane data set).

I think using the next line should be OK to have this done : "grep(pattern = "^[[:space:]*[:alpha:]{2}[:digit:]{6}]|[[:digit:]]{8}", x = txt)"

Thanks for your work on this library and in advance for the update.