Re: [R] simple question

From: Ko-Kang Kevin Wang <Kevin.Wang_at_maths.anu.edu.au>
Date: Sat 22 Oct 2005 - 22:14:38 EST

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

______________________________________________
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:31:28 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:17:55 EST