[R] remove loop which compares row i to row i-1

jcrosbie james at crosb.ie
Fri Jul 6 00:52:55 CEST 2012


Thank you, 

I tired

 ifelse(tUnitsort[length(tUnitsort$Hour),4]>=tUnitsort[-1,4],(tempMC
=tUnitsort[length(tUnitsort$Hour),7]),tempMC )

But this doesn't seem to work. 

Where am I going wrong? 

--
View this message in context: http://r.789695.n4.nabble.com/remove-loop-which-compares-row-i-to-row-i-1-tp4635327p4635566.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list