[R] longer object length is not a multiple of shorter object length

madr madrazel at interia.pl
Wed Dec 8 00:01:40 CET 2010


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]
-- 
View this message in context: http://r.789695.n4.nabble.com/longer-object-length-is-not-a-multiple-of-shorter-object-length-tp3077400p3077400.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list