MathGroup Archive 2009

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

Search the Archive

Re: from the list select

Brute force:

   where = First@Flatten@Position[Part[#, 3] & /@ namedata, "P"];


   Cases[namedata, {_,_,"P"}]

terrie riley wrote:
> from this list select the person who has P in the third position
> namedata = {{"Aardsma", "David", "P"},{"Bay", "Jason", "OF"}}

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: Two questions about modification of a matrix.
  • Next by Date: Re: Re: Number format
  • Previous by thread: Re: Re: from the list select
  • Next by thread: Re: from the list select