Reshapes a correspondence table from long to wide format.
Wrapper around data.table::dcast
1 | CT_to_wide(x, source = 1, target = 2, value = 3, return = "data.table")
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.