[R] A little problem

"Unternährer Thomas, uth" uth at zhwin.ch
Tue Aug 5 10:58:01 CEST 2003


Hi,

Does anybody knows a easy way (without for-loops, maybe with something like match) 
to solve this problem:

x <- rep(1,3)
y <- c(0,1,0,1,0,1,1,1,0,0,0,0,1,0)

if (x is a part of y){
 find out where it is and
 do something
}


Thanks a lot

Thomas




More information about the R-help mailing list