R语言报错arguments imply differing number of rows:1,0

在用R进行sem分析时遇到以下报错的原因是什么呢?是数据有问题还是模型有问题?


> summary(CDR.piecewise)
  |==================                                                                  |  21%Error in data.frame(Independ.Claim = paste(b[[i]][2], "~", rhs), ct[,  : 
  arguments imply differing number of rows: 1, 0

参考一下: r - What does the error "arguments imply differing number of rows: x, y" mean? - Stack Overflow I'm trying to create a plot from elements of csv file which looks like this: h1,h2,h3,h4 a,1,0,1,0 b,1,1,0,1 c,0,0,1,0 I tried the following code but am receiving an error saying Error in data.fr... https://stackoverflow.com/questions/26147558/what-does-the-error-arguments-imply-differing-number-of-rows-x-y-mean

应该是数据格式的问题