diff --git a/joins.qmd b/joins.qmd index 25d0167..b18759b 100644 --- a/joins.qmd +++ b/joins.qmd @@ -401,7 +401,7 @@ flights2 |> group_by(dest) |> summarize(delay = mean(arr_delay), n = n()) |> filter(n > 5) |> - inner_join(airports, by = c("dest" = "faa")) |> + inner_join(airports, join_by(dest == faa)) |> ggplot(aes(x = lon, y = lat)) + borders("state") + geom_point(aes(size = n, color = delay)) + @@ -892,9 +892,9 @@ employees |> Why are they different? ```{r} - x |> full_join(y, by = "key") + x |> full_join(y, join_by(key == key)) - x |> full_join(y, by = "key", keep = TRUE) + x |> full_join(y, join_by(key == key), keep = TRUE) ``` 2. When finding if any party period overlapped with another party period we used `q < q` in the `join_by()`?