Re: [R] Sweave: tables vs matrices

2007-09-19 Thread Markus Jäntti
Gavin Simpson wrote: > On Fri, 2007-09-14 at 11:24 +0100, Robin Hankin wrote: >> Hi Gavin >> >> thanks for that. . . it does 99% of what I wanted. >> I'd forgotten about the na.print argument. >> >> It's considerably nicer than my other solution >> which converted to character, then jj[is.na(jj)] <

Re: [R] Sweave: tables vs matrices

2007-09-14 Thread Gavin Simpson
On Fri, 2007-09-14 at 11:24 +0100, Robin Hankin wrote: > Hi Gavin > > thanks for that. . . it does 99% of what I wanted. > I'd forgotten about the na.print argument. > > It's considerably nicer than my other solution > which converted to character, then jj[is.na(jj)] <- "-" > then noquote(jj). >

Re: [R] Sweave: tables vs matrices

2007-09-14 Thread Robin Hankin
Hi Gavin thanks for that. . . it does 99% of what I wanted. I'd forgotten about the na.print argument. It's considerably nicer than my other solution which converted to character, then jj[is.na(jj)] <- "-" then noquote(jj). But sometimes I just need nice LaTeX tables and I can't think of a way

Re: [R] Sweave: tables vs matrices

2007-09-14 Thread Gavin Simpson
On Fri, 2007-09-14 at 09:34 +0100, Robin Hankin wrote: > Hello everyone > > > I am preparing a document using Sweave in which I want my matrices > to appear as tables. I am running into problems because as my > Rnw files stand, I have to change table entries twice, once for > the matrix and onc

[R] Sweave: tables vs matrices

2007-09-14 Thread Robin Hankin
Hello everyone I am preparing a document using Sweave in which I want my matrices to appear as tables. I am running into problems because as my Rnw files stand, I have to change table entries twice, once for the matrix and once for the typeset table. I have lots of material like the following.