df1 %>% filter(data1 %in% df2$data2) # Here example from SIMBA. Too many results in HbA1c, Weight data contains only completers. HbA1c_hem_final %>% filter(allocation_no %in% weight_data$allocation_no)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter