SparkR version 1.4.1
我试图在两个连接条件下连接两个数据帧df1和df2:
df3 <- join(df1, df2, df1$col1==df2$col2 && df1$col3==df2$col4)
然而,这失败了,并出现以下错误:无效的'x'类型在'x &&y '
这只是界面的一个小变化:使用单个&而不是double:
df3 <- join(df1, df2, df1$col1==df2$col2 & df1$col3==df2$col4)