MathGroup Archive 2009

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

Search the Archive

Re: from the list select

  • To: mathgroup at
  • Subject: [mg101085] Re: [mg101048] from the list select
  • From: Leonid Shifrin <lshifr at>
  • Date: Tue, 23 Jun 2009 07:08:39 -0400 (EDT)
  • References: <>


namedata = {{"Aardsma", "David", "P"},{"Bay", "Jason", "OF"}}


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

Select[namedata, #[[3]] === "P" &]

Next time consider reading the documentation first before posting your
question - this one is simple enough to be figured out even by a complete


On Mon, Jun 22, 2009 at 1:23 AM, terrie riley <triley4 at> wrote:

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

  • Prev by Date: Re: 2 plots in the same Manipulate
  • Next by Date: Re: exporting coordinate triplets out of ParametricPlot3D
  • Previous by thread: from the list select
  • Next by thread: Re: Re: from the list select