join_key {teal.data} | R Documentation |
Create a relationship between a pair of datasets
Description
Create a relationship between two datasets, dataset_1
and dataset_2
.
By default, this function establishes a directed relationship with dataset_1
as the parent.
If dataset_2
is not specified, the function creates a primary key for dataset_1
.
Usage
join_key(dataset_1, dataset_2 = dataset_1, keys, directed = TRUE)
Arguments
dataset_1 , dataset_2 |
( |
keys |
(optionally named
|
directed |
(
|
Value
object of class join_key_set
to be passed into join_keys
function.
See Also
Examples
join_key("d1", "d2", c("A"))
join_key("d1", "d2", c("A" = "B"))
join_key("d1", "d2", c("A" = "B", "C"))