On 24-Feb-10 20:03, Henrique Dallazuanna wrote:
You can use tryCatch also:
cat(tryCatch(sprintf('found %s in col %d\n', s, c), error =
function(x)cat('Not Found\n')))
Ah .. one more way .. thanks, I've saved it away in my set of
R tricks!
Best,
Esmail
______________________________________________
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.