打印R中两列的匹配词

问题描述

我有2个带有用户名的数据框。

input1

username
akshay
bhanu
catherine
dennis

input2

username
akshay
bhanu
catherine
dennis
edward
francis

我必须找到2列的匹配单词。两列上都有大约120多个名称,我仅举几个例子。我尝试了几种方法,但是它说数据帧的长度不同。

解决方法

您可以使用dplyr软件包中的过滤器功能。

<app_root>/app/src/debug/google-services.json