Re: [R] working with fractions

From: Federico Calboli <f.calboli_at_imperial.ac.uk>
Date: Thu, 21 Jun 2007 19:04:55 +0100

Muhammad Subianto wrote:

> > library(MASS)
> > as.fractions(c(0, 0.15, 0.8266667, .066666, 0.2666666))
> [1] 0 3/20 62/75 1/15 4/15

Seems to make things a bit too slow, even though I get a good increase in precision.

Fede

-- 
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St Mary's Campus
Norfolk Place, London W2 1PG

Tel  +44 (0)20 7594 1602     Fax (+44) 020 7594 3193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com

______________________________________________
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.
Received on Thu 21 Jun 2007 - 18:12:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2007 - 18:32:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.