-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
If I have a tibble containing a tibble column, it would be useful to be able to join based on the contents of a column within the tibble column.
df <- tibble(id = 1:5, tibbleCol = tibble(id = 2:6, value = 6:2), value = 3:7)
df2 <- tibble(id = 5:1, value = 8:4)
left_join(df, df2, by = c("tibbleCol$id" = "id"))
# Error in `left_join()`:
# ! Join columns in `x` must be present in the data.
# ✖ Problem with `tibbleCol$id`.The above currently fails, but there is no obvious reason that it should do so, since the columns within a tibble column (unlike list columns or nested columns) are inherently the same length as the parent tibble.
Metadata
Metadata
Assignees
Labels
No labels