Description Usage Arguments Value Author(s) See Also Examples
This function identifies the sampling frequency of a zoo object. So far, it only works with daily/monthly/annual ts.
1 | sfreq(x, min.year = 1800)
|
x |
variable of type zoo, xts or ts, with AT LEAST 2 elements, AND with a daily, monthly or annual sampling frequency. |
min.year |
integer used for a correct identification of the sampling frequency when |
Character. Possible values are:
-) daily : indicating that the sampling frequency in x
is daily
-) monthly : indicating that the sampling frequency in x
is monthly
-) annual : indicating that the sampling frequency in x
is annual
Mauricio Zambrano-Bigiarini, mzb.devel@gmail
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Loading temperature data ##
## Loading daily streamflows at the station Oca en Ona (Ebro River basin, Spain) ##
data(OcaEnOnaQts)
d <- OcaEnOnaQts
## Daily to Monthly
m <- daily2monthly(d, FUN=mean, na.rm=TRUE)
## Daily to Annual
a <- daily2annual(d, FUN=mean, na.rm=TRUE)
# Daily zoo object
sfreq(d)
# Monthly zoo object
sfreq(m)
# Annual zoo object
sfreq(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.