Output Decimals as Fractions in LaTeX


#1

Anybody know of any way I can compute numbers in R and then pass it to a function like pander() and it will output fractions instead of decimals?


#2

Maybe use something like MASS's fractions function?

https://stat.ethz.ch/R-manual/R-devel/library/MASS/html/fractions.html