Description Usage Arguments Examples
Generic interface for C-functions with inputs (values, times, length(values), ...) and output (values_new). Example: sma, rolling_max, ema, ...
1 | generic_C_interface(x, C_fct, ...)
|
x |
a numeric |
C_fct |
the name of the C function to call. |
... |
further arguments passed to the C function. |
1 2 3 4 5 6 | # SMA_last
generic_C_interface(ex_uts(), "sma_last", width_before=ddays(1), width_after=ddays(0))
# One- vs. two-sided window
generic_C_interface(ex_uts(), "rolling_num_obs", width_before=dhours(6), width_after=dhours(0))
generic_C_interface(ex_uts(), "rolling_num_obs", width_before=dhours(6), width_after=dhours(6))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.