Try this: your_list[!is.na(your_list)]
On Sun, Sep 6, 2009 at 4:32 PM, Grzes <gregori...@gmail.com> 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 na.value() function. > Do you have any idea? > -- > View this message in context: > http://www.nabble.com/avoid-NA-in-list-tp25321020p25321020.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.