[R] simple question

Ronaldo Reis-Jr. chrysopa at insecta.ufv.br
Sat Oct 22 14:25:12 CEST 2005


Em Sáb 22 Out 2005 10:07, Korbinian von Blanckenburg escreveu:
> Its just a simple question I guess:
>
> I have a vector with missing information like
> x<-c(0,1,31,131,NA,133,NA,310,NA,112,3,1,2,93)
>
> How can I make a vector like this no missing in it. I used the x[x<0]
> commabd and tried some more, with no success.
>
> thx
> Korbinian
>

Hi,

try this:

x[is.na(x)==FALSE]

Inte
Ronaldo
-- 
There is a fly on your nose.
--
|>   // | \\   [***********************************]
|   ( õ   õ )  [Ronaldo Reis Júnior                ]
|>      V      [UFV/DBA-Entomologia                ]
|    /     \   [36570-000 Viçosa - MG              ]
|>  /(.''`.)\  [Fone: 31-3899-4007                 ]
|  /(: :'  :)\ [chrysopa at insecta.ufv.br            ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
|    ( `-  )   [***********************************]
|>>  _/   \_Powered by GNU/Debian Woody/Sarge




More information about the R-help mailing list