Re: [R] Numeric formatting question

2009-11-10 Thread Marc Schwartz
On Nov 10, 2009, at 7:23 AM, Michael Pearmain wrote: Hi All, I have am using Sweave and the \Sexpr{} to place some numeric variables in my tex document. I want to format the number prior to entry so they read slightly more elegantly. Say i have the following numbers x <- 0.00487324 y <- 0.

Re: [R] Numeric formatting question

2009-11-10 Thread Dieter Menne
Michael Pearmain-2 wrote: > > Hi All, > > I have am using Sweave and the \Sexpr{} to place some numeric variables in > my tex document. I want to format the number prior to entry so they read > slightly more elegantly. > Say i have the following numbers > x <- 0.00487324 > y <- 0.00432 > z

[R] Numeric formatting question

2009-11-10 Thread Michael Pearmain
Hi All, I have am using Sweave and the \Sexpr{} to place some numeric variables in my tex document. I want to format the number prior to entry so they read slightly more elegantly. Say i have the following numbers x <- 0.00487324 y <- 0.00432 z <- 0.567 I would like to have the numbers displa