Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

Round/Digits not working as documented? #285

Closed perfguy closed 7 years ago

perfguy commented 7 years ago

I want to print the following with exactly two digits after the decimal point. I am not able to accomplish that with round and/or keep.trailing.zeros

> r <- matrix(c(283764.97430, 29.12345678901, -7.1234, -100.10), ncol = 2)
> pandoc.table(r, keep.trailing.zeros=T, round=2)

------ ------
**283765** -7.12 

29.12  **-100.1**
------ ------
daroczig commented 7 years ago

I think this was fixed in #259, can you please give a try to the dev version?

perfguy commented 7 years ago

yes this is fixed in the dev version. Thanks!