Skip to content

Instantly share code, notes, and snippets.

@troyhill
troyhill / noaa_function.R
Last active December 15, 2015 02:29
Function scrapes NOAA tide data from CO-OPS website, formats data and makes it an R object. Major update in October 2013 to accommodate changes to the CO-OPS website
### Important note: I'm no longer maintaining this gist, since this code is incorporated into the
### VulnToolkit package.
### Because it's not being maintained, the code below might not work. The latest, updated version
### of the NOAA scraper is available at https://github.com/troyhill/VulnToolkit/blob/master/R/noaa.r
### Function downloads and compiles tide data from NOAA CO-OPS website
### Requires RCurl and XML packages - install.packages("RCurl"); install.packages("XML")
###
### This version does not include a monthly time interval option