50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

FRACTION (version 1.1.1)

fra: FRACTION for number

Description

to turn numeric number into fraction form

Usage

fra(x, j = 7)

Value

Return a charerter which shows the fraction equals x, x is a number

Arguments

x

a numeric number

j

Decimal digits default is 7

Author

OuYang Ming

References

Friedrich Leisch, 2008 Creating R packages: A Tutorial Zhang Jinlong, How to create R package under Windows

Examples

Run this code
x=1/3
fra(x)

Run the code above in your browser using DataLab