Skip to contents

Compare the overlap between datasets in 'many' datacubes

Usage

compare_overlap(datacube, dataset = "all", key = "manyID")

Arguments

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.

key

A variable key to join datasets. 'manyID' by default.

Value

compare_overlap() returns a tibble with information about each dataset and the number of overlapping observations.

Details

compare_overlap() compares the overlap between "key" observations in each dataset in a 'many' datacube.

See also

Examples

# \donttest{
compare_overlap(emperors, key = "ID")
#> # A tibble: 7 × 2
#>   `Datasets from emperors`  `Overlapping Observations by ID`
#>   <chr>                                                <int>
#> 1 Wikipedia                                                1
#> 2 UNRV                                                    15
#> 3 Britannica                                               1
#> 4 Wikipedia/UNRV                                           0
#> 5 Wikipedia/Britannica                                     3
#> 6 UNRV/Britannica                                         18
#> 7 Wikipedia/UNRV/Britannica                               65
plot(compare_overlap(emperors, key = "ID"))

# }