dvStat | R Documentation |
Compute summary statistics for daily values, possibly grouped by years or seasons.
dvStat(x, Dates, Start = NULL, End = NULL, by = NULL, pre = NULL, stat = min, na.rm = TRUE, STAID = "Unknown", ...)
x |
the daily value data to be summarized. Missing values are permitted, but some summary statistics could be biased if missing data are present. |
Dates |
the date for each |
Start |
the start date for the analysis, can be either a character string or class "Date." |
End |
the end date for the analysis, can be either a character string or class "Date." |
by |
the grouping variable, generally the output from some date grouping function
like |
pre |
any preprocessing function like |
stat |
the statistical function. Must accept the |
na.rm |
remove missiing values option for the function |
STAID |
the station identifier for the data. |
... |
any additional arguments for the function |
A data.frame containing the STAID
, groups generated by
by
, the number of non-missing values in the grouop, and the statistic
and first date on which that statistic occurred.
## Not run: # For these examples, print to console .pager <- options("pager") options(pager="console") # See the demo for examples of how to use the dvStat function. demo(package="DVstats") options(.pager) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.