Re: [R] If NA Problem!

2011-09-02 Thread Peter Ehlers
On 2011-09-02 05:16, Anna Dunietz wrote: Hi All! Please find code and the respective lists below. My problem: I specify the case that lilwin[[p]] is not an NA and want the code found in iwish to be returned ONLY for that case. Why do I get a list of length 2 (and why is NULL the first element)

Re: [R] If NA Problem!

2011-09-02 Thread Jean V Adams
Anna Dunietz wrote on 09/02/2011 07:16:45 AM: > > Hi All! > > Please find code and the respective lists below. My problem: I specify the > case that lilwin[[p]] is not an NA and want the code found in iwish to be > returned ONLY for that case. Why do I get a list of length 2 (and why is > NU

[R] If NA Problem!

2011-09-02 Thread Anna Dunietz
Hi All! Please find code and the respective lists below. My problem: I specify the case that lilwin[[p]] is not an NA and want the code found in iwish to be returned ONLY for that case. Why do I get a list of length 2 (and why is NULL the first element)? I understand that the code below is quite