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 tied
to your problem
Michael
On Fri, Sep 30, 2011 at 10:58 AM, Alaios <alaios at yahoo.com>
wrote:> 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.
>
> Could you please explain me what might be the problem for that?
>
> B.R
> Alex
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>