Skip to content
Prev 171701 / 398503 Next

: record which entry in one file doesn't appear in a different file

hey Laura,
I hope this help

f1 = c("a","b","c")
f2 = c("b","a","c","d")
match(f2,f1)
f3 = match(f2,f1,0)
?match
cbind(f2,f3)
cbind(f2,f3>0)
f4 = ifelse(f3>0,"yes","no")
cbind(f2,f4)
data.frame(f2,f4)

Patrizio

2009/2/25 Laura Rodriguez Murillo <laura.lmurillo at gmail.com>: