fractions: Local implementation of the 'MASS::fractions()' function

fractionsR Documentation

Local implementation of the MASS::fractions() function

Description

Find rational approximations to the components of a real numeric object using a standard continued fraction method.

Usage

fractions(x, cycles = 10, max.denominator = 2000, ...)

Arguments

x

Any object of mode numeric.

cycles

The maximum number of steps to be used in the continued fraction approximation process.

max.denominator

An early termination criterion.

...

Arguments passed to or from other methods.

Source

This function and the documentation is taken directly from the MASS package (see https://rdrr.io/cran/MASS/src/R/fractions.R). It is defined locally in prettyGraphics solely to reduce reliance on non-default packages.


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.