powered by
to turn vector, data.frame, matrix into fraction form
fra.m(x)
Return a charerter which shows the fraction equals x, x is a data.frame or matrix or vector
Vector, matrix or data.frame which contains numeric number
OuYang Ming
Friedrich Leisch, 2008 Creating R packages: A Tutorial Zhang Jinlong, How to create R package under Windows
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)
Run the code above in your browser using DataLab