ez.match2 | R Documentation |
similar to ez.match
ez.match2(df, col, vec)
Two differences from ez.match:
1. intersect(unique(vec),df[[col]]) will be used to match.
2. Duplicates in df[[col]] will be kept in order.
For example, df[[col]] has two rows id1_col2, id1_col1, vec = c(id1,id1), then returns two rows id1_col2, id1_col1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.