Re: [R] Rounding like in finances

2010-02-22 Thread Oliver
Duncan Murdoch stats.uwo.ca> writes: [...] > MASS (function rational()) > rcdd > Rmpfr [...] OK, I will look for those packages. Maybe they will help. Thank you. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Rounding like in finances

2010-02-22 Thread Duncan Murdoch
On 22/02/2010 9:57 AM, Oliver wrote: Hello, which packages are you talking about? And... are thoise packages using integer-based calculations? I don't use this, but the ones I'd look in would be: MASS (function rational()) rcdd Rmpfr You can use RSiteSearch("rational") to look for more.

Re: [R] Rounding like in finances

2010-02-22 Thread Oliver
Hello, which packages are you talking about? And... are thoise packages using integer-based calculations? __ 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/posti

Re: [R] Rounding like in finances

2010-02-22 Thread Ivan Calandra
same result with R2.10.1 on Windows... Le 2/22/2010 15:34, Oliver a écrit : Oh strange... round(108.275 , 2) [1] 108.28 round(208.275 , 2) [1] 208.28 round(308.275 , 2) [1] 308.27 looks not like what one should expect... R version 2.9.2 (2009-0

Re: [R] Rounding like in finances

2010-02-22 Thread Duncan Murdoch
On 22/02/2010 9:06 AM, Oliver wrote: Hello, I need to have a "kaufmaennisches Runden" function. Is there already something like that? It means: rounding up the 5, instead of rounding it down. So, 245.455 would give 245.46 I found no option for this. Maybe there is a package for it? This is

Re: [R] Rounding like in finances

2010-02-22 Thread Oliver
Oh strange... > round(108.275 , 2) [1] 108.28 > round(208.275 , 2) [1] 208.28 > round(308.275 , 2) [1] 308.27 > looks not like what one should expect... R version 2.9.2 (2009-08-24) Ciao, Oliver __ R-help@r-project.org mailing list https://s

Re: [R] Rounding like in finances

2010-02-22 Thread Henrique Dallazuanna
round(245.455, 2) ? On Mon, Feb 22, 2010 at 11:06 AM, Oliver wrote: > Hello, > > I need to have a "kaufmaennisches Runden" function. > > Is there already something like that? > > It means: rounding up the 5, instead of rounding it down. > > So, 245.455 would give 245.46 > > I found no option for

[R] Rounding like in finances

2010-02-22 Thread Oliver
Hello, I need to have a "kaufmaennisches Runden" function. Is there already something like that? It means: rounding up the 5, instead of rounding it down. So, 245.455 would give 245.46 I found no option for this. Maybe there is a package for it? Oliver __