MathGroup Archive 2009

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

Search the Archive

Re: from the list select


Hi,

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

Solutions:

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
novice.

Regards,
Leonid


On Mon, Jun 22, 2009 at 1:23 AM, terrie riley <triley4 at san.rr.com> 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