expand_index: Supplement an existing linking index with new links.

View source: R/util.R

expand_indexR Documentation

Supplement an existing linking index with new links.

Description

exand_indexsupplements an existing linking index using a new set of proposed links.

Usage

expand_index(dat)

Arguments

dat

a dataset containing a variable index which is to be supplemented, and a variable candidate_index for the indexes which are to supplement it

Examples

dat = data.table(
     index = c(1, 1, 1, 2, 2, NA, 2, NA, NA, NA, 4, 4, NA),
     index_candidate = c(5, 5, NA, 6, 6, 6, 6, 7, 7, NA, 8, 8, 8))
expand_index(dat)

rijpma/capelinker documentation built on Nov. 7, 2024, 3:06 a.m.