Learn R Programming

PortfolioTesteR (version 0.1.4)

join_panels: Join multiple panels on intersecting dates (unique symbol names)

Description

Align and join a list of wide panels on their common dates. Each input panel must have one Date column and a disjoint set of symbol columns.

Usage

join_panels(panels)

Value

A data.table with Date plus the union of all symbol columns, restricted to common dates.

Arguments

panels

List of wide panels (data.frame or data.table), each with columns Date + symbols.

Details

All panels are first aligned to the intersection of their Date values. Symbol names must be unique across panels; if the same symbol appears in multiple inputs, an error is raised.