Re: [R] remove the missing value,NA

2008-02-08 Thread Jorge Iván Vélez
Hi Mohamed, May be it's not the best way, but you can try w=c(1,4,5,2,NA,4,5,1,NA) w[-which(is.na(w))] [1] 1 4 5 2 4 5 1 I hope this helps. Jorge On 2/8/08, mohamed nur anisah [EMAIL PROTECTED] wrote: I have two sets of interval data.Below are my two dataset. In these dataset, there

[R] remove the missing value,NA

2008-02-08 Thread mohamed nur anisah
I have two sets of interval data.Below are my two dataset. In these dataset, there is a missing values in each of the data. I want to find the non-overlapping interval values. Here is my code: mysetdiff=function(x,y){ m=length(x) n=length(y) bx = logical(m) by = logical(n)