Skip to contents

Stacks the two indices into one build index with one row per filing. Where a filing is in both, the GTDC row is kept, so once GTDC catches up the patch row drops out.

Usage

combine_index(gt, patch, cols = c("ObjectId", "URL", "TaxYear", "FormType"))

Arguments

gt

A GTDC index (e.g. get_current_index_full() or the batch index).

patch

Output of build_patch_index(), or the patch index CSV read back with all columns as character.

cols

Columns to keep; must exist in both inputs.

Value

A data.table with cols plus SOURCE ("GTDC" or "PATCH").