Re: [R] integrate two lines to one

2011-09-30 Thread R. Michael Weylandt
On first glance it seems like it should work, perhaps a minimal working example would help. Also, if logictoReduce is a boolean vector, you probably don't need to test for equality with TRUE; if that test seems necessary (i.e., if Overloads <- Overloads[logictoReduce] doesn't work) that may be tie

[R] integrate two lines to one

2011-09-30 Thread Alaios
Dear all, I would like to put these two lines together logictoReduce<-((Overloads-1)%%FreqN)==(SpanIndex-1) #0...3 refer to sub spans 1 to 4 Overloads<-Overloads[logictoReduce==TRUE] and do it like this Overloads<-Overloads[((Overloads-1)%%FreqN)==(SpanIndex-1)] which does not seem to work.