crosstab_sdg {text2sdg} | R Documentation |
Compare query systems and SDGs
Description
crosstab_sdg
calculates cross tables (aka contingency tables) of SGSs or systems across hits identified via detect_sdg_systems.
Usage
crosstab_sdg(hits, compare = c("systems", "sdgs"), systems = NULL, sdgs = NULL)
Arguments
hits |
|
compare |
|
systems |
|
sdgs |
|
Details
crosstab_sdg
determines correlations between either query systems or SDGs. The respectively other dimension will be ignored. Note that correlations between SDGs may vary between query systems.
Value
matrix
showing correlation coefficients for all pairs of query systems (if compare = "systems"
) or SDGs (if compare = "SDGs"
).
Examples
# run sdg detection
hits <- detect_sdg_systems(projects)
# create cross table of systems
crosstab_sdg(hits)
# create cross table of systems
crosstab_sdg(hits, compare = "sdgs")