遇到一个我以前从未见过的错误,一个相当广泛的谷歌/ SO /邮件列表搜索空洞。
在for循环中使用full_join
时,在75%的for循环迭代迭代后,我收到以下错误:
Error in full_join_impl(x, y, by$x, by$y, suffix$x, suffix$y) :
atributes of different sizes
这个错误是什么意思?我一直试图理解它所指的是什么。我能想到的最好的方法是测试我的两个tbl_dfs属性的长度,发现length(attributes(x))
与length(attributes(y))
相同
我运行traceback()
,当我收到错误时会产生以下结果:
```
5: stop(list(message = "atributes of different sizes", call = full_join_impl(x,
y, by$x, by$y, suffix$x, suffix$y), cppstack = list(file = "",
line = -1L, stack = "C++ stack not available on this system")))
4: .Call("dplyr_full_join_impl", PACKAGE = "dplyr", x, y, by_x,
by_y, suffix_x, suffix_y)
3: full_join_impl(x, y, by$x, by$y, suffix$x, suffix$y)
2: full_join.tbl_df(x, y, by = c("common col1", "common col2"))
1: full_join(x, y, by = c("common col1", "common col2")) at #50
```