Howdy, I am looking for an efficient and fast way for doing this:
for (v in 1:dw) {ok <-list1[v,] for (z in 1:5) {kk = ok[z] ; for (o in 1:t) {if (kk== list[o]) n<- n+1}} show(n) } list1 : a data.frame with nrow = dw ; ncol = z; list2 : a data.frame with nrow = 1 ; ncol = t with t > z Thanks Louis martin --------------------------------- [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.