这是一个简单的问题,但对于我的生活,我找不到答案.
for (w in 1:47) {
s <- w + 1;
while(s < 49) {
xx <- wcc(x$codes[w,], x$codes[s,], 20)
C = matrix(rbind(w,s,xx), nrow=1128, ncol=3, byrow=TRUE)
s <- s + 1;
}
}
Run Code Online (Sandbox Code Playgroud)
在这个循环中,我想将XX逐个放入矩阵C中.