View source: R/03-df_joinOpers.R
df_innerJoin_byDiffColNames | R Documentation |
两个数据框内连接,列名不同,但一一对应
df_innerJoin_byDiffColNames(
data_frame1,
data_frame2,
leftBy_fieldName,
rightBy_fieldName
)
data_frame1 |
第1数据框 |
data_frame2 |
每2数据框 |
leftBy_fieldName |
左列名 |
rightBy_fieldName |
右列表 |
返回值
library(tsdo);
data("joinData1");
data("joinData3");
left_by <-c('fname','fclass');
right_by <-c('titileName','titleClass');
df_innerJoin_byDiffColNames(joinData1,joinData3,left_by,right_by);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.