main.r352 chars12 lines
In this code snippet, two dataframes df1 and df2 are created. Then a left join is performed on the 'id' column using the merge function. The all.x = TRUE parameter specifies that all rows from df1 should be included in the result, introducing NAs where the 'id's do not match.
gistlibby LogSnag