[R] rounding of integer
Hi I need to round integer \ eg if my value is 1003 i want to make it 1000 Thanks in advance - Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/rounding-of-integer-tp4360549p4360549.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] rounding of integer
On Feb 6, 2012, at 1:40 AM, arunkumar wrote: Hi I need to round integer \ eg if my value is 1003 i want to make it 1000 ?round -- David Winsemius, MD West Hartford, CT __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] rounding of integer
Try round(1003, digits = -3) HTH, Jorge.- On Mon, Feb 6, 2012 at 1:40 AM, arunkumar wrote: Hi I need to round integer \ eg if my value is 1003 i want to make it 1000 Thanks in advance - Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/rounding-of-integer-tp4360549p4360549.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.