automated text for reproducible research automated text for reproducible research r r

automated text for reproducible research


There is a package FRACTION and when you replace / by "out of", it could work. However, the output when using the number of decimals is strange:

library(FRACTION)fra(0.66,j=2)# [1] "33 / 50"fra(0.66,j=1)#"7 / 1e+08" 

Edit by @Dieter Menne: forget this, see @Ben Bolker below.