ez.match2: similar to ez.match

View source: R/frame.R

ez.match2R Documentation

similar to ez.match

Description

similar to ez.match

Usage

ez.match2(df, col, vec)

Note

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.


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.