Good morning, I have a question about R, I would like to know how it is possible not to chop the result of an operation. How many decimals it is possible to obtain? Thank you in advance, I. L?pez --------------------------------------------- Inmaculada L?pez Garc?a Dpto. Estad?stica y Matem?tica Aplicada Universidad de Almer?a La Ca?ada de San Urbano, s/n 04120 Almer?a (SPAIN) Tfno.: +34 950 01 57 75 Fax: +34 950 01 51 67 e-mail: milopez at ual.es
Petr Pikal petr.pikal at precheza.cz ----- Postoupil do Petr PIKAL/CTCAP dne 30.03.2007 15:47 ----- Petr PIKAL/CTCAP napsal dne 30.03.2007 15:01:58:> Hi > > Do you mean rounding. If yes you can consult > ?round, ?floor, ?ceiling. > > If you want just to print different amount of digits you can look at > options(digits=n) or ?sprintf or ?format > > Regards > > Petr Pikal > petr.pikal at precheza.cz > > r-help-bounces at stat.math.ethz.ch napsal dne 30.03.2007 13:12:23: > > > > > > > Good morning, > > > > I have a question about R, I would like to know how it is possible notto> > chop the result of an operation. How many decimals it is possible toobtain?> > > > Thank you in advance, > > I. L?pez > > --------------------------------------------- > > Inmaculada L?pez Garc?a > > Dpto. Estad?stica y Matem?tica Aplicada > > Universidad de Almer?a > > La Ca?ada de San Urbano, s/n > > 04120 Almer?a (SPAIN) > > Tfno.: +34 950 01 57 75 > > Fax: +34 950 01 51 67 > > e-mail: milopez at ual.es > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code.
I am not sure I understand your question but have a look at ?round and the signif command on that page. --- Inmaculada L?pez Garc?a <milopez at ual.es> wrote:> > > Good morning, > > I have a question about R, I would like to know how > it is possible not to > chop the result of an operation. How many decimals > it is possible to obtain? > > Thank you in advance, > I. L?pez > --------------------------------------------- > Inmaculada L?pez Garc?a > Dpto. Estad?stica y Matem?tica Aplicada > Universidad de Almer?a > La Ca?ada de San Urbano, s/n > 04120 Almer?a (SPAIN) > Tfno.: +34 950 01 57 75 > Fax: +34 950 01 51 67 > e-mail: milopez at ual.es > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >