Base USGS water science R functions.