Description Usage Arguments Value Author(s) See Also Examples
Make water year, year, month, and day columns from the date stamp of a U.S. Geological Survey peak-streamflow data retrieval from the National Water Information System (NWIS) in an R data.frame
into separate columns of the input data.frame
.
1 |
x |
A |
The x
is returned with the addition of these columns:
year_va |
The calendar year extracted from |
month_va |
The optional month extracted from |
day_va |
The optional day extracted from |
water_yr |
The water year, which is not equal to |
W.H. Asquith
1 2 3 4 5 | ## Not run:
PK <- dataRetrieval::readNWISpeak("08167000", convertType=FALSE)
PK <- makeWaterYear(PK) # Note: The convertType=FALSE is critical.
names(PK) # See that the columns are there.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.