hyet_window_sum computes the rolling sum of
values. Returns an error if
prec is not a numeric vector or
rolling_window not a positive integer.
a numeric vector
an integer that represents the rolling window as a number of time steps.
a numeric vector with summed precipitation values. These values are filled with NAs at the end.
Computing time depends on
use R's base
rowSums function with
na.rm = TRUE.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.