Description Usage Arguments Value
Reshapes correspondence table from wide to long format.
Wrapper around data.table::melt
1 2 3 4 5 6 | CT_to_long(
x,
source_name = "source",
target_name = "target",
sort_by = "source"
)
|
x |
a CT in wide format. Either matrix with rownames (source classification) and column names (target classfication), or data.table with the source classifaction as the first column |
source_name |
name of the source classication. Defaults to 'source' (if x is matrix), or the name of the first column (if x is data.table) |
target_name |
name of the target classifaction. Defaults to 'target' |
sort_by |
either 'source' (default) or 'target' |
a CT in long format (=data.table with 3 columns: source and target classification, and mapping infromation (numeric/boolean))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.