Skip to content

Commit 4afcd13

Browse files
authored
fixing left join
1 parent c713c62 commit 4afcd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

episodes/05-dplyr.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ In this case we will instead use another "outer join" option called "left join".
684684
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.
685685
```{r, purl=FALSE, message=FALSE}
686686
# 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))
688688
```
689689
In this case, the resulting data frame matches our `inner` result exactly because there was no missing data in our right table.
690690
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

Comments
 (0)