You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/05-dplyr.Rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -684,7 +684,7 @@ In this case we will instead use another "outer join" option called "left join".
684
684
A left join keeps all of the data in the table written on the left side of our function, and will add on columns where the table on the right side matches via our `by` statement.
685
685
```{r, purl=FALSE, message=FALSE}
686
686
# arguments "left tbl" "right tbl"
687
-
full <- full_join(variants, metadata_sub, by = join_by(sample_id == run))
687
+
left <- left_join(variants, metadata_sub, by = join_by(sample_id == run))
688
688
```
689
689
In this case, the resulting data frame matches our `inner` result exactly because there was no missing data in our right table.
690
690
Note: A "right" join is the opposite of a "left" so it will keep all the data in the right most listed table and merge on the info in the left most listed table
0 commit comments