MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How do I use BooleanSelect?

  • To: mathgroup at
  • Subject: [mg6404] Re: [mg6390] How do I use BooleanSelect?
  • From: "w.meeussen" <w.meeussen.vdmcc at>
  • Date: Sun, 16 Mar 1997 19:25:19 -0500 (EST)
  • Sender: owner-wri-mathgroup at

At 01:21 15-03-97 -0500, jason welter wrote:
>BooleanSelect is a function in the DataManipulation.m add on package
>in Statistics.  It doesn't seem to work.  Here's some background on it
>as well as TakeWhile which does work:
>"BooleanSelect[list, sel] keeps elements of list for which the
>corresponding element of sel is True."
>Attributes[BooleanSelect] = {Protected, ReadProtected}
>"TakeWhile[list, pred] takes elements from the beginning of list while
>pred is True."
>Attributes[TakeWhile] = {Protected, ReadProtected}
>Here is some test data I have been using to explore these functions:
>testa = {1,2,3,4,-2,y,6,7};
>The function TakeWhile works in the following way:
>Boolean Select does not:
>What I really need is a working function like BooleanSelect that will
>let me sort through arrays, like "testb".  I need to screen out all
>groups in testb that either have -2 or -200 as an element.  For
>There must be a way.  What is it?



it looks like BooleanSelect takes as second argument a list of 
"corresponding element(s)" each True or False.

that you can generate with:

have fun,


Dr. Wouter L. J. MEEUSSEN
eu000949 at
w.meeussen.vdmcc at

  • Prev by Date: system of equations
  • Next by Date: Re: Working with Dot[..] or NonCommutativeMultiply[..]
  • Previous by thread: How do I use BooleanSelect?
  • Next by thread: Why does TimeUsed die?