nfd_stats | R Documentation |
nfd_stats()
computes six basic statistics for each trace in any nfd type
objects. nfd_pdf()
computes an empirical PDF for each trace and returns the
probabilities and magnitudes associated with the PDF.
nfd_stats(x, site, flow_space, time_step, plot = FALSE)
nfd_pdf(x, site, flow_space, time_step, which, breaks = NULL, plot = FALSE)
nfd_pdf_get_breaks(nfdpdf)
x |
An object inheriting from nfd. |
site |
The site to compute the stats for. Numeric or name (character). |
flow_space |
"total" or "intervening". |
time_step |
"monthly" or "annual". |
plot |
Boolean. If |
which |
The month to compute the cdf for. A vector including any/all
values in |
breaks |
Specifies how the breaks are computed in |
nfdpdf |
An object inheriting from |
The basic statistics are mean, variance, minimum, maximum, lag-1
correlation, and skew. The resulting statistics are stored in a special
data.frame - a nfd_stats
object that inherits from
data.frame
. The resulting statistics can be plotted by calling plot()
on
the resulting object.
If using the output from nfd_pdf()
to then specify the breaks for another
call to nfd_pdf()
, it is highly recommended to use
nfd_pdf_get_breaks()
. nfd_pdf_get_breaks()
will return a matrix of all
the breaks if nfdpdf
contains monthly data, which is the format expected
in nfd_pdf()
. For annual data, it still works but is less necesary.
nfd_stats
data.frame.
nfd_pdf
data.frame.
nfd_pdf_get_breaks()
returns a numeric vector (for annual data) or
matrix (for monthly data).
nfd, plot.nfd_stats()
, plot.nfd_pdf()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.