MathGroup Archive 2005

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

Search the Archive

Re: Select from list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61079] Re: [mg61045] Select from list
  • From: curtis <gardyloo at mail.wsu.edu>
  • Date: Sun, 9 Oct 2005 01:36:16 -0400 (EDT)
  • References: <200510080649.CAA20981@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi, Steven,

   Make sure to put the ampersand after a pure function so Mathematica
knows what's up. In your case, try:

Select[nLevel[8,10], (#<0)& ]


     Best wishes,
          Curtis O.

Steven Taracevicz wrote:

>hi:
>
>I read a text file that gives me a list.
>nLevel[8, 10] = Import["output8_10.txt", "List"]
>
>{-10,-9,-7,-3,1,3,3,17}
>
>I have no problems calculating mean, variance etc. with the list.
>
>When I use:
>
>Select[nLevel[8,10], #<0]
>
>yields
>
>{}
>
>despite negative elements.
>
>I cannot figure out why.
>
>Thanks,
>
>  
>

-- 
|=====
|  Curtis Osterhoudt              
|  gardyloo at mail.wsu.edu                   
|  PGP Key ID: 0x235FDED1                               
|  Please avoid sending me Word or PowerPoint attachments. 
|  http://www.gnu.org/philosophy/no-word-attachments.html 
|=====


  • References:
  • Prev by Date: Import Limitations
  • Next by Date: Re: Select from list
  • Previous by thread: Re: Select from list
  • Next by thread: Re: Select from list