Skip to contents

[Stable]

Usage

join_keys(...)

Arguments

...

optional, a JoinKeySet objects created using the join_key function.

Value

JoinKeys

Details

Note that join keys are symmetric although the relationship only needs to be specified once.

Examples

join_keys()
#> An empty JoinKeys object.
join_keys(
  join_key("dataset_A", "dataset_B", c("col_1" = "col_a")),
  join_key("dataset_A", "dataset_C", c("col_2" = "col_x", "col_3" = "col_y"))
)
#> A JoinKeys object containing foreign keys between 3 datasets:
#> $dataset_A
#> $dataset_A$dataset_B
#>   col_1 
#> "col_a" 
#> 
#> $dataset_A$dataset_C
#>   col_2   col_3 
#> "col_x" "col_y" 
#> 
#> 
#> $dataset_B
#> $dataset_B$dataset_A
#>   col_a 
#> "col_1" 
#> 
#> 
#> $dataset_C
#> $dataset_C$dataset_A
#>   col_x   col_y 
#> "col_2" "col_3" 
#> 
#> 
join_keys(
  join_key("dataset_A", "dataset_B", c("col_1" = "col_a"))
)
#> A JoinKeys object containing foreign keys between 2 datasets:
#> $dataset_A
#> $dataset_A$dataset_B
#>   col_1 
#> "col_a" 
#> 
#> 
#> $dataset_B
#> $dataset_B$dataset_A
#>   col_a 
#> "col_1" 
#> 
#>