MathGroup Archive 2005

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

Search the Archive

Re: Select from list


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 
|=====


  • 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