Try this:
overlapped<-function(x,y)
{
z<-rbind(x,y)
overlap <- vector()
for(i in 1:nrow(z)){
overlap<-c(overlap, (z[i,1]<=z[,2]&z[i,2]>=z[,1])[-i])
}
return(z[overlap,])
}
On 17/02/2008, mohamed nur anisah <[EMAIL PROTECTED]> wrote:
> dear lists,
>
> My question is quite simple but i'm
dear lists,
My question is quite simple but i'm a new user in R and it's seem tough to
me. How am i going to recall back my values??ok..it could be easy if i
ilustrate my problem with the simple example. say that,
x
[1] 1 2
y
[1] 2 3
and my logical output fro
2 matches
Mail list logo