Re: [R] simple question

From: Ronaldo Reis-Jr. <chrysopa_at_insecta.ufv.br>
Date: Sat 22 Oct 2005 - 22:25:12 EST

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@insecta.ufv.br            ]
|>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
|    ( `-  )   [***********************************]
|>>  _/   \_Powered by GNU/Debian Woody/Sarge

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Oct 22 22:38:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:46 EST