Description Usage Arguments Value Examples
View source: R/compute.Q.stat.longterm.R
Computes long-term summary statistics on flow$Q
variable
between start.year
and end.year
inclusive for both calendar and water years.
It (optionally) saves the results in *.csv and *.pdf files.
1 2 3 4 |
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. |
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 computed statistics?
The file name will be |
write.cy.stat.trans.csv |
Should a file be created with the transposed of the statistics report?
The file name will be |
write.wy.stat.csv |
Should a file be created with the computed statistics?
The file name will be |
write.wy.stat.trans.csv |
Should a file be created with the transposed of the statistics report?
The file name will be |
report.dir |
Directory in which *.csv or *.pdf files are stored. |
csv.nddigits |
Number of decimal digits to be rounded to when creating *.csv files. |
na.rm |
List of logical values indicating how to deal with missing values.
|
A list with the following elements:
Q.cy.stat.longterm |
Data frame with the long-term statistics of |
Q.cy.stat.longterm.trans |
Data frame with the long-term statistics of |
file.cy.stat.csv |
Object with file name of *.csv file with long term summary statistics. |
file.cy.stat.trans.csv |
Object with file name of *.csv file with transposed long-term summary statistics. |
Q.wy.stat.longterm |
Data frame with the long-term statistics of |
Q.wy.stat.longterm.trans |
Data frame with the long-term statistics of |
file.wy.stat.csv |
Object with file name of *.csv file with long-term summary statistics. |
file.wy.stat.trans.csv |
Object with file name of *.csv file with transposed long-term 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 | ## Not run:
stat.longterm <- compute.Q.stat.longterm(
Station.Code ='ABCDE',
flow =flow,
start.year =1960,
end.year =2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.