Re: [R] avoid NA in list

2009-09-07 Thread Grzes
Henrique and Peter, thank you very much for your advices :) -- View this message in context: http://www.nabble.com/avoid-NA-in-list-tp25321020p25330422.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] avoid NA in list

2009-09-06 Thread Peter Alspach
d" "e" $d [1] 1 NA 10 $e [1] NA NA NA NA NA HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Henrique > Dallazuanna > Sent: Monday, 7 September 2009 8:37 a.m. > To:

Re: [R] avoid NA in list

2009-09-06 Thread Henrique Dallazuanna
Try this: your_list[!is.na(your_list)] On Sun, Sep 6, 2009 at 4:32 PM, Grzes wrote: > > Hi! > I Have list, for example: > ... > [[22]] > [1] 27 51 69 107 119 > > [[23]] > [1] NA > > [[24]] > [1] 54 57 62 > > And I would like to avoid NA value. Similar way like I may do it in vector > using n

[R] avoid NA in list

2009-09-06 Thread Grzes
Hi! I Have list, for example: ... [[22]] [1] 27 51 69 107 119 [[23]] [1] NA [[24]] [1] 54 57 62 And I would like to avoid NA value. Similar way like I may do it in vector using na.value() function. Do you have any idea? -- View this message in context: http://www.nabble.com/avoid-NA-in-lis