View source: R/construct_rolling_infrastructure.R
construct_rolling_infrastructure | R Documentation |
Constructs a tidy-resampling object for time-series data.
construct_rolling_infrastructure( .data, .initial = 252, .assess = 1, .cumulative = FALSE, ... )
.data |
A tabular (non-tidy) |
.initial |
A |
.assess |
A |
.cumulative |
A |
... |
Additional arguments to be passed to |
A tibble
of the snoop_rolling
class. Contains 3 columns:
.date
, .analysis
and .assessment
.
stocks <- tibble::tibble( time = as.Date('2009-01-01') + 0:99, X = rnorm(100, 0, 1), Y = rnorm(100, 0, 2), Z = rnorm(100, 0, 4) ) construct_rolling_infrastructure(stocks, .initial = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.