Skip to content

Commit 461b78f

Browse files
Update joins.qmd (#1758)
Minor typos have been fixed.
1 parent 9600b43 commit 461b78f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

joins.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This will become important when we start actually joining tables together.
114114

115115
### Checking primary keys
116116

117-
Now that that we've identified the primary keys in each table, it's good practice to verify that they do indeed uniquely identify each observation.
117+
Now that we've identified the primary keys in each table, it's good practice to verify that they do indeed uniquely identify each observation.
118118
One way to do that is to `count()` the primary keys and look for entries where `n` is greater than one.
119119
This reveals that `planes` and `weather` both look good:
120120

@@ -495,7 +495,7 @@ There are three types of outer joins:
495495
#| appears in the output.
496496
#| fig-alt: |
497497
#| Compared to the previous diagram showing an inner join, the y table
498-
#| gets a new virtual row containin NA that will match any row in x
498+
#| gets a new virtual row containing NA that will match any row in x
499499
#| that didn't otherwise match. This means that the output now has
500500
#| three rows. For key = 3, which matches this virtual row, val_y takes
501501
#| value NA.
@@ -667,7 +667,7 @@ x |> inner_join(y, join_by(key == key), keep = TRUE)
667667
#| fig-cap: |
668668
#| An inner join showing both `x` and `y` keys in the output.
669669
#| fig-alt: |
670-
#| A join diagram showing an inner join betwen x and y. The result
670+
#| A join diagram showing an inner join between x and y. The result
671671
#| now includes four columns: key.x, val_x, key.y, and val_y. The
672672
#| values of key.x and key.y are identical, which is why we usually
673673
#| only show one.
@@ -895,4 +895,4 @@ Finally, you've gained a glimpse into the power of non-equi joins and seen a few
895895
This chapter concludes the "Transform" part of the book where the focus was on the tools you could use with individual columns and tibbles.
896896
You learned about dplyr and base functions for working with logical vectors, numbers, and complete tables, stringr functions for working with strings, lubridate functions for working with date-times, and forcats functions for working with factors.
897897
898-
In the next part of the book, you'll learn more about getting various types of data into R in a tidy form.
898+
In the next part of the book, you'll learn more about getting various types of data into R in a tidy form.

0 commit comments

Comments
 (0)