pack_join()
worksCode
pack_join(df1, df2)
Message
Joining with `by = join_by(key)`
Output
# A tibble: 2 x 3
col1 key df2$col2
<int> <chr> <int>
1 1 a 3
2 2 b 4
Code
pack_join(df1, df2, name = "packed_col")
Message
Joining with `by = join_by(key)`
Output
# A tibble: 2 x 3
col1 key packed_col$col2
<int> <chr> <int>
1 1 a 3
2 2 b 4
Code
pack_join(df1, df3, by = c(key = "key3"))
Output
# A tibble: 2 x 3
col1 key df3$col3
<int> <chr> <int>
1 1 a 3
2 2 b 4
Code
pack_join(df1, df3, by = c(key = "key3"), keep = TRUE)
Output
# A tibble: 2 x 3
col1 key df3$col3 $key3
<int> <chr> <int> <chr>
1 1 a 3 a
2 2 b 4 b
pack_join()
works with remote table`x` and `y` must share the same src, set `copy` = TRUE (may be slow)
Code
pack_join(df1, dm_remote$tf_1, by = c(col1 = "a"), copy = TRUE)
Output
# A tibble: 2 x 3
col1 key `dm_remote$tf_1`$b
<int> <chr> <chr>
1 1 a A
2 2 b B
Code
pack_join(df4, df5, by = c(df5 = "col"))
Output
# A tibble: 0 x 1
# i 1 variable: df5 <tibble[,0]>
Code
pack_join(df5, df6, by = c(col = "df6"))
Output
# A tibble: 0 x 2
# i 2 variables: col <int>, df6 <tibble[,0]>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.