Re: [R] Number -> Fraction

2007-09-13 Thread Mauro Arnoldi
Alle giovedì 13 settembre 2007, Stefano Calza ha scritto: > > see "fractions" in library MASS > Yeah! > 1/3 [1] 0.333 > fractions(0.333) [1] 1/3 Great! Thanks! (grazie :) ) Mauro __ R-help@r-project.org mailing list https://stat.ethz.ch/mailm

[R] Number -> Fraction

2007-09-13 Thread Mauro Arnoldi
Hi everybody! I'm new to this list and also to the R program. I'd like to know if there is a function able to convert results into Fractional form like my scientific calculator have. For example: > 1/3 [1] 0.333 > function_that_return_a_fraction_from_numbers(0.333) [1] 1/3 Thanks Maur