crosstab_sdg | R Documentation |
crosstab_sdg
calculates cross tables (aka contingency tables) of SGSs or systems across hits identified via detect_sdg_systems.
crosstab_sdg(hits, compare = c("systems", "sdgs"), systems = NULL, sdgs = NULL)
hits |
|
compare |
|
systems |
|
sdgs |
|
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.
matrix
showing correlation coefficients for all pairs of query systems (if compare = "systems"
) or SDGs (if compare = "SDGs"
).
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.