[R] simple question

Ko-Kang Kevin Wang Kevin.Wang at maths.anu.edu.au
Sat Oct 22 14:14:38 CEST 2005


Hi,

Korbinian von Blanckenburg wrote:
> 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.

Try na.omit()

HTH,

Kevin

-- 
Ko-Kang Kevin Wang
PhD Student
Centre for Bioinformation Science
Building 27, Room 1004
Mathematical Sciences Institute (MSI)
Australian National University
Canberra, ACT 2601
Australia

Homepage: http://wwwmaths.anu.edu.au/~wangk/
Ph (W): +61-2-6125-2431
Ph (H): +61-2-6125-7488
Ph (M): +61-40-451-8301




More information about the R-help mailing list