Skip to content
Prev 244237 / 398506 Next

longer object length is not a multiple of shorter object length

In datamatrix[, "y"] == datamatrix[, "y"][-1] :
  longer object length is not a multiple of shorter object length

out = c(FALSE,datamatrix[,'y'] == datamatrix[,'y'][-1])

and I do not know why I get that error, the resulting out matrix is somehow
one row larger than datamatrix...
all I try to do is filter matrix by dropping rows where [,'y'][-1] ==
[,'y'][+1]