View source: R/populateDaily.r
populateDaily | R Documentation |
Using raw data that has at least dateTime, value, code, populates the rest of the basic Daily data frame used in EGRET analysis.
populateDaily(rawData, qConvert, verbose = TRUE)
rawData |
dataframe contains at least dateTime, value, code columns |
qConvert |
character conversion to cubic meters per second |
verbose |
logical specifying whether or not to display progress message |
A data frame 'Daily' with the following columns:
Name | Type | Description |
Q | numeric | Discharge in m^3/s |
Julian | integer | Number of days since Jan. 1, 1850 |
Month | integer | Month of the year [1-12] |
Day | integer | Day of the year [1-366] |
DecYear | numeric | Decimal year |
MonthSeq | integer | Number of months since January 1, 1850 |
Qualifier | character | Qualifying code |
i | integer | Index of days, starting with 1 |
LogQ | numeric | Natural logarithm of Q |
Q7 | numeric | 7 day running average of Q |
Q30 | numeric | 30 day running average of Q |
Robert M. Hirsch rhirsch@usgs.gov
readNWISDaily
, readUserDaily
dateTime <- as.character(seq(as.Date("2001/1/1"),
as.Date("2001/12/31"), by = "day"))
value <- 1:365
code <- rep("",365)
dataInput <- data.frame(dateTime, value, code, stringsAsFactors=FALSE)
Daily <- populateDaily(dataInput, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.