View source: R/library--data_prep--filter_tools--make_quantile_function.R
windowingQuantFunc | R Documentation |
Takes 1 time series dataframe and adds a some columns specifying the rolling quantile and rolling mean of the selected column.
windowingQuantFunc(DF, column)
DF |
dataframe containing columns: date: date variable communicating the day the measurement is from window: singular type column saying what window the rolling function should use quant: singular value column saying what quantile to return *column: DF needs to contain a column with the same name as the string in the variable column |
column |
what column to use for the rolling quantile and mean functions |
DF with added columns ntile: a rolling quantile of the data pastKavg.wwlog10: a mean of the last K days
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.