A data scientist is analyzing hospital readmission rates and needs to join patient demographics with clinical outcomes across two large data frames. Which tidyverse approach is most efficient?
-
A
Use merge() from base R with all=TRUE
-
B
Use dplyr's left_join() specifying the key column
-
C
Use rbind() to stack the data frames
-
D
Use apply() to iterate over rows and match manually