[R] fractional calculations

Federico Calboli f.calboli at imperial.ac.uk
Mon Jun 25 14:03:15 CEST 2007


Hi All,

is there a function in R that allows me to work with fractions without 
transforming them to floats (or whatever) in between?

Something that would calculate something like:

(1/2 + 1/8) * 1/2 = 5/16

without ever transforming to 0.5 and 0.125?

Best,

Federico

-- 
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



More information about the R-help mailing list