[R] sprintf + integer(0) problem

Esmail esmail.js at gmail.com
Thu Feb 25 03:38:23 CET 2010


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



More information about the R-help mailing list