Description Usage Arguments Value Examples
View source: R/compute.Q.stat.annual.R
Computes many annual (calendar and water year) statistics and (optionally) saves the results in *.csv and *.pdf files.
1 2 3 4 5 6 | compute.Q.stat.annual(Station.Code = "XXXXX", Station.Area = NA, flow,
start.year = 9999, end.year = 0, write.cy.stat.csv = TRUE,
write.wy.stat.csv = TRUE, write.stat.trans.csv = TRUE,
write.flow.summary.csv = TRUE, write.lowflow.csv = TRUE,
plot.stat.trend = TRUE, plot.cumdepart = TRUE, report.dir = ".",
na.rm = list(na.rm.global = FALSE), csv.nddigits = 3, debug = FALSE)
|
Station.Code |
A character string. Used to name any *.csv or *.pdf files created so be careful that the Station.Code will be acceptable in a file name. |
Station.Area |
Area of the water basin (square km), used in computing some statistics |
flow |
Dataframe with two variables (1) Missing values for The date range of A water year runs from 1 October of the previous year to 30 Sept of the current year All other variables in the data frame will be ignored. Data does NOT have to be sorted by Date order. |
start.year, end.year |
Starting and ending year for statistics in YYYY format, e.g. start.year=2013. |
write.cy.stat.csv |
Should a file be created with the calendar year computed percentiles?
The file name will be |
write.wy.stat.csv |
Should a file be created with the water year computed percentiles?
The file name will be |
write.stat.trans.csv |
Should a file be created with the transposed of the annual statistics
(both calendar and water year)?
The file name will be |
write.flow.summary.csv |
Should a file be created with a flow summary over the years between the
start.year and end.year (inclusive). This summary includes number of days, number of missing values,
mean, median, minimum, maximum, and standard deviation of |
write.lowflow.csv |
Should a file be created with the minimum value of |
plot.stat.trend |
Should a file be created with plots of the statistics over the years
between |
plot.cumdepart |
Should a file be created with plots of the yearly and cumulative departures
from the grand mean between |
report.dir |
Directory in which *.csv or *.pdf files are stored. |
na.rm |
List of logical values indicating how to deal with missing values.
|
csv.nddigits |
Number of decimal digits to be rounded to when creating *.csv files. |
debug |
Internal flag used for debugging |
A list with the following elements:
Q.flow.summary |
Data frame with flow summary. |
Q.stat.annual |
Data frame with summary statistics as listed at |
Q.stat.annual.trans |
Data frame with transposed summary statistics as listed at |
dates.missing.flow |
Data framw with dates of missing |
file.cy.stat.csv |
Object with file name of *.csv file with calendar year summary statistics. |
file.wy.stat.csv |
Object with file name of *.csv file with water year summary statistics. |
file.stat.trans.csv |
Object with file name of *.csv file with transposed summary statistics. |
file.stat.trend.pdf |
Object with file name of *.pdf file with plot of statistics over time. |
file.cumdepart.pdf |
Object with file name of *.pdf file with plot of yearly and cumulative departures. |
file.summary.csv |
Object with file name of *.csv file with summary statistics. |
file.lowflow.csv |
Object with file name of *.csv file with low flow summary statistics. |
na.rm |
Missing value flags. |
Version |
Version of this function. |
Date |
Date function was run. |
1 2 3 4 5 6 7 8 9 | ## Not run:
stat.annual <- compute.Q.stat.annual(
Station.Code ='ABCD',
Station.Area =12345,
flow =flow,
start.year =1960,
end.year =2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.