jim holtman wrote: >> matches <- sapply(result, function(x){ > + .comma <- strsplit(x, ',')[[1]] # get the fields > + any(my.list %in% .comma) > + })
Thanks for that! Joh ______________________________________________ R-help@stat.math.ethz.ch 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.