CT_to_wide: Reshapes a correspondence table from long to wide format....

Description Usage Arguments

View source: R/reshaping.R

Description

Reshapes a correspondence table from long to wide format. Wrapper around data.table::dcast

Usage

1
CT_to_wide(x, source = 1, target = 2, value = 3, return = "data.table")

Arguments

x

a correspondence table in long format. Must have at least 3 columns: source and target classification, and mapping infromation (numeric/boolean)

source

location (numeric) or name (character) of column of source classification

target

location (numeric) or name (character) of column of target classification

value

location (numeric) or name (character) of value column

return

simschul/mapR documentation built on Dec. 24, 2021, 1:18 a.m.