| ml_panel_op | R Documentation |
Applies an elementwise binary operator to two date-aligned wide panels
(first column Date, other columns are symbols), preserving the Date
column and a consistent symbol set. Supports intersection or union of
column sets; missing entries introduced by how="union" are filled.
ml_panel_op(A, B, op = `*`, how = c("intersect", "union"), fill = NA_real_)
A, B |
Data frames with a |
op |
Binary function to apply elementwise (e.g., |
how |
Character; |
fill |
Numeric; value used to fill gaps when |
A data.frame with Date and the operated symbol columns.
## Not run:
out <- ml_panel_op(mom12_panel, vol_panel, op = `*`)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.