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. To select two or more datasets, please declare them as a vector.

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.

Examples

# \donttest{
compare_overlap(emperors, key = "ID")
#> # A tibble: 7 × 2
#>   `Datasets from emperors`    `Overlapping Observations by ID`
#>   <chr>                                                  <int>
#> 1 wikipedia                                                 13
#> 2 UNRV                                                      31
#> 3 britannica                                                20
#> 4 wikipedia..UNRV                                            7
#> 5 wikipedia..britannica                                      7
#> 6 UNRV..britannica                                          19
#> 7 wikipedia..UNRV..britannica                               41
plot(compare_overlap(emperors, key = "ID"))

# }