Re: from the list select
- To: mathgroup at smc.vnet.net
- Subject: [mg101085] Re: [mg101048] from the list select
- From: Leonid Shifrin <lshifr at gmail.com>
- Date: Tue, 23 Jun 2009 07:08:39 -0400 (EDT)
- References: <200906220823.EAA09375@smc.vnet.net>
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"}}
>
>
- Follow-Ups:
- Re: Re: from the list select
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: from the list select
- References:
- from the list select
- From: terrie riley <triley4@san.rr.com>
- from the list select