powered by
Folds a list of panels using ml_panel_op() across a set of named panels.
ml_panel_op()
ml_panel_reduce(features, panels, op = `*`, how = "intersect", fill = NA_real_)
A data.frame panel (wide) with the reduced result.
List of panels (each a wide data frame with Date).
Date
Character vector of names in features to reduce (length \(\ge\) 2).
features
Binary function to apply elementwise.
Column-set policy passed to ml_panel_op().
Fill value for how="union".
how="union"
if (FALSE) { # product of three panels prod_panel <- ml_panel_reduce(X, c("mom12","vol","rsi14"), op = `*`) }
Run the code above in your browser using DataLab