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
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:
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
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
4 matches
Mail list logo