fra.m {FRACTION} | R Documentation |
FRACTION for vector, matrix or data.frame
Description
to turn vector, data.frame, matrix into fraction form
Usage
fra.m(x)
Arguments
x |
Vector, matrix or data.frame which contains numeric number |
Value
Return a charerter which shows the fraction equals x, x is a data.frame or matrix or vector
Author(s)
OuYang Ming
References
Friedrich Leisch, 2008 Creating R packages: A Tutorial Zhang Jinlong, How to create R package under Windows
Examples
y=c(1/2,1/3,1/9)
fra.m(y)
z=data.frame(1/2)
fra.m(z)
q=matrix(1)
fra.m(q)
[Package FRACTION version 1.1.1 Index]