compare_categories | R Documentation |
Compare categories in 'many' datacubes
compare_categories(
datacube,
dataset = "all",
key = "manyID",
variable = "all",
category = "all"
)
datacube |
A datacube from one of the many packages. |
dataset |
A dataset in a datacube from one of the many packages. By default "all". That is, all datasets in the datacube are used. To select two or more datasets, please declare them as a vector. |
key |
A variable key to join datasets. 'manyID' by default. |
variable |
Would you like to focus on one, or more, specific variables present in one or more datasets in the 'many' datacube? By default "all". For multiple variables, please declare variable names as a vector. |
category |
Would you like to focus on one specific code category? By default "all" are returned. Other options include "confirmed", "unique", "missing", "conflict", or "majority". For multiple variables, please declare categories as a vector. |
Confirmed values are the same in all datasets in datacube. Unique values appear once in datasets in datacube. Missing values are missing in all datasets in datacube. Conflict values are different in the same number of datasets in datacube. Majority values have the same value in multiple, but not all, datasets in datacube.
Other compare_:
compare_dimensions()
,
compare_missing()
,
compare_overlap()
,
compare_ranges()
compare_categories(emperors, key = "ID")
compare_categories(datacube = emperors, dataset = c("wikipedia", "UNRV"),
key = "ID", variable = c("Beg", "End"), category = c("conflict", "unique"))
plot(compare_categories(emperors, key = "ID"))
plot(compare_categories(datacube = emperors, dataset = c("wikipedia", "UNRV"),
key = "ID", variable = c("Beg", "End"), category = c("conflict", "unique")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.