[R] replacing values in vector

pbrouilly@gphy.campus.univ-poitiers.fr pbrouilly at gphy.campus.univ-poitiers.fr
Tue Sep 28 11:09:53 CEST 2004

Hi everybody !!

I have a vector named v1 with a lot of values from 0 to 10.
Is there a solution to replace all 0 by 1 ??

I have tried with a 'FOR' loop...

Thank you very much

More information about the R-help mailing list