[R] return value for grep

Ulrich ulrich.schlecht at stanford.edu
Sun Oct 31 03:51:43 CET 2010


Hi,

is it possible to easily change the return value for the grep function  
for cases where there is no match, for example the value 0 or "No"  
instead of integer (0) )?

Thanks, Uli



More information about the R-help mailing list