Vulgar Fractions in R
Representation of a numeric vector in vulgar fractional form
Method for the group generic function for the elementary mathematical ...
Extract the parts of a fractional object
Convert a fractional object to the equivalent numeric object
Method for the group generic function for the arithmetic operators
Calculate Rational Approximation Using Continued Fraction Methods
Demote a fractional object back to a numeric one
Vectorized form for fractional
The main function of this package allows numerical vector objects to be displayed with their values in vulgar fractional form. This is convenient if patterns can then be more easily detected. In some cases replacing the components of a numeric vector by a rational approximation can also be expected to remove some component of round-off error. The main functions form a re-implementation of the functions 'fractions' and 'rational' of the MASS package, but using a radically improved programming strategy.