reindex: Takes a matrix and reindexes cells reminescent of match()

Description Usage Arguments Details Value

Description

reindex takes a matrix and reindexes cells reminescent of match()

Usage

1
reindex(pConv, col.regex, indices)

Arguments

pConv

Matrix. With integer columns referenced in col.regex to be reindexed.

col.regex

Character. Regex matching to the column names of columns to be reindexed.

indices

Numeric. Numeric vector with new values. indices[pConv[1,1]] will be the replacement value

Details

This is useful for performing a search with a subset of granular formula, and reindexing to some master ID index.

Value

A matrix with referenced cells replaced by new values


nathaniel-mahieu/mz.unity documentation built on May 23, 2019, 12:19 p.m.