sampling_frequency | R Documentation |
Given either a vector of time indices or an xts object will infer the sampling frequency.
sampling_frequency(x)
x |
either an xts object (or one which has an index attribute) else a vector of class Date or POSIX based time index |
the sampling period (character).
w <- sampling_frequency(seq(as.Date("2010-01-01"), as.Date("2011-01-01"), by="weeks"))
m <- sampling_frequency(seq(as.POSIXct("2010-01-01 12:00:00"),
as.POSIXct("2010-01-02 12:00:00"), by="15 mins"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.