[R] round 2.3 to 2.5 and 2.2 to 2.0
Mat
matthias.weber at fnt.de
Mon Jan 7 09:59:03 CET 2013
Hello together,
i want to round some numbers in my data.frame.
How can i round a number to values like 0.5; 1.0; 1.5; 2.0; etc.
It should look like this one
before
2.2 ; 2.3; 2.26; 1.11
after
2.0; 2.5; 2.5; 1.0
thanks.
Mat
--
View this message in context: http://r.789695.n4.nabble.com/round-2-3-to-2-5-and-2-2-to-2-0-tp4654813.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list