| compare | R Documentation |
Compare Marginal Dimension-Code Coverage.
compare(..., import_labels = TRUE, import_dim_labels = TRUE)
... |
Two or more different dataset references, each supplied as a separate scalar string. |
import_labels |
Logical; include code labels. |
import_dim_labels |
Logical; include dimension labels. |
Rows are the full union of dimension-ID/code pairs. Matching IDs are not proof
of conceptual equivalence across datasets. Conflicting labels are joined with
" | " and generate a warning rather than being silently overwritten.
Availability follows importMetabase. This function compares metadata
coverage, not numeric observations, units or revisions.
A data.table with Dim_name, Dim_val, optional labels,
and one logical column per input dataset. Missing membership is FALSE.
describe, importMetabase
if (interactive()) {
# Discover two relevant references first rather than guessing identifiers.
candidates <- OECDdata::find("national accounts")$df$Code
if (length(candidates) >= 2L) compare(candidates[[1]], candidates[[2]])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.