Learn R Programming

fractional (version 0.1.3)

Vulgar Fractions in R

Description

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.

Copy Link

Version

Install

install.packages('fractional')

Monthly Downloads

490

Version

0.1.3

License

GPL (>= 2)

Maintainer

Last Published

February 15th, 2016

Functions in fractional (0.1.3)

numerators

Extract the parts of a fractional object
Ops.fractional

Method for the group generic function for the arithmetic operators
vfractional

Vectorized form for fractional
fractional

Representation of a numeric vector in vulgar fractional form
Math.fractional

Method for the group generic function for the elementary mathematical functions
rat

Calculate Rational Approximation Using Continued Fraction Methods
unfractional

Demote a fractional object back to a numeric one
numerical

Convert a fractional object to the equivalent numeric object