[R] Convert negativ number to 0

Mat matthias.weber at fnt.de
Wed Dec 19 16:03:58 CET 2012


Hallo together,

i have a data.frame like this one.
      A 
1    3
2    -2
3    1

and now i want to convert the negative number to 0.

      A 
1    3
2    0
3    1

How can i do this?

Thanks.
Mat



--
View this message in context: http://r.789695.n4.nabble.com/Convert-negativ-number-to-0-tp4653529.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list