cynthiahqy / conformr-xmap-project

R Package for harmonising data of different classifications or aggregations into a single dataset
MIT License
7 stars 1 forks source link

Add graph and matrix classes for xmap #93

Closed cynthiahqy closed 1 year ago

cynthiahqy commented 1 year ago
cynthiahqy commented 1 year ago
cynthiahqy commented 1 year ago

Rather than classes, I think it makes the most sense to have a single xmap class (i.e. xmap_df), and everything else be "candidate links" -- which can be input into the as_xmap() generic. Candidate links can also be validated as crossmaps, without coercion, allowing users to validate transformation objects in existing workflows.

Coercion into xmap classes should be reserved for facilitating "advanced" or "extension" tasks --- i.e. visualisation, perturbation, multi-map transformations. Some xmap class variants could include "long" or "short" formats for ggplot; or recode/collapse variants which drop the weights columns (since it is implied).

cynthiahqy commented 1 year ago

Closing as separate issues will be created for necessary xmap variants and/or candidate link types