Update relational-data.Rmd
Hi Hadwick. Thanks for putting this book together. I don't believe these a data frame called carrier and the example here is joining flights2 and airlines by the key carrier.
This commit is contained in:
parent
ad34770ab3
commit
8efd88ab27
|
@ -154,7 +154,7 @@ Like `mutate()`, the join functions add variables to the right, so if you have a
|
||||||
|
|
||||||
(When you're in RStudio, you can use `View()` to avoid this problem).
|
(When you're in RStudio, you can use `View()` to avoid this problem).
|
||||||
|
|
||||||
For example, imagine you want to add the full airline name to the `flights` data. You can combine the `airlines` and `carrier` data frames with `left_join()`:
|
For example, imagine you want to add the full airline name to the `flights2` data. You can combine the `airlines` and `flights2` data frames with `left_join()`:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
flights2 %>%
|
flights2 %>%
|
||||||
|
|
Loading…
Reference in New Issue