[R] R number format with Hmisc and knitr
szehnder at uni-bonn.de
Wed Jul 31 17:15:01 CEST 2013
it must say:
file = '',
cdec = c(0, rep(4, NCOL(myDataFrame) - 1))
But this does not work. Scientific notation is very robust :)
On Jul 31, 2013, at 5:05 PM, Simon Zehnder <szehnder at uni-bonn.de> wrote:
> Dear R-Users and R-Devels,
> I have a problem when using knitr in combination with Hmisc. I generate a data.frame which has mixed scientific and non-scientific numbers inside. In my Latex Table I just want to have non-scientific format, so I call
> file = '',
> cdec = c(0, rep(4, NROW(myDataFrame) - 1)),
> Usually this works, but in this case it doesn't. I do not know why but suspect the mixed data format to be the culprit. What could I do?
> Using format(, scientific = FALSE) before or options(scipen = 4) before has no influence.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help