Re: [R] conditioning inside an lapply

2008-04-11 Thread Romain Francois
rom: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Fri 11/04/2008 22:35 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [R] conditioning inside an lapply >From: [EMAIL PROTECTED] >Date: 2008/04/11 Fri PM 04:16:56 CDT >To: [EMAIL PROTECTED] >Subject: [R] conditioning ins

Re: [R] conditioning inside an lapply

2008-04-11 Thread markleeds
>From: [EMAIL PROTECTED] >Date: 2008/04/11 Fri PM 04:16:56 CDT >To: [EMAIL PROTECTED] >Subject: [R] conditioning inside an lapply in my previous example, the last name in temp should have been z not x. i didn't intend to have duplicate names in temp. I apologize for any conf

[R] conditioning inside an lapply

2008-04-11 Thread markleeds
This is probably basic but I want to condition based on the name of the component inside an lapply. So, in the simple example below, if .elem was x i want to do one thing but if it's y a different thing etc. Can someone tell me how to do that without using names(temp) as the thing one sends into t