Re: [R] regular expression

2007-04-08 Thread Laurent Rhelp
Gabor Grothendieck a écrit : On 4/7/07, Laurent Rhelp [EMAIL PROTECTED] wrote: Gabor Grothendieck a écrit : I assume is to replace single quotes in double quoted strings with single quoted strings containing double quotes in place of the single quotes that's rignt

Re: [R] regular expression

2007-04-08 Thread Laurent Rhelp
, dquote), paste(dquote, squote), x) gsubfn('[][^]*[]', f, s) # ['...' '...\...'] [1] ['...' '...\...'] R.version.string # XP [1] R version 2.4.1 Patched (2006-12-30 r40331) packageDescription(gsubfn)$Version [1] 0.3-3 On 4/8/07, Laurent Rhelp [EMAIL PROTECTED] wrote: Gabor

Re: [R] regular expression

2007-04-08 Thread Laurent Rhelp
Gabor Grothendieck a écrit : On 4/7/07, Laurent Rhelp [EMAIL PROTECTED] wrote: Gabor Grothendieck a écrit : I assume is to replace single quotes in double quoted strings with single quoted strings containing double quotes in place of the single quotes that's rignt

[R] [Fwd: Re: regular expression]

2007-04-08 Thread Laurent Rhelp
---BeginMessage--- Uwe Ligges a écrit : I guess your problem has been solved by last night's discussion with Gabor G.? Uwe Ligges Laurent Rhelp wrote: Uwe Ligges a écrit : Laurent Rhelp wrote: Uwe Ligges a écrit : Laurent Rhelp wrote: Dear R-List, I have a great

Re: [R] regular expression

2007-04-07 Thread Laurent Rhelp
Uwe Ligges a écrit : Laurent Rhelp wrote: Uwe Ligges a écrit : Laurent Rhelp wrote: Dear R-List, I have a great many files in a directory and I would like to replace in every file the character by the character ' and in the same time, I have to change ' by '' (i.e

Re: [R] regular expression

2007-04-07 Thread Laurent Rhelp
Uwe Ligges a écrit : Laurent Rhelp wrote: Uwe Ligges a écrit : Laurent Rhelp wrote: Dear R-List, I have a great many files in a directory and I would like to replace in every file the character by the character ' and in the same time, I have to change ' by '' (i.e

Re: [R] regular expression

2007-04-07 Thread Laurent Rhelp
, Laurent Rhelp [EMAIL PROTECTED] wrote: Dear R-List, I have a great many files in a directory and I would like to replace in every file the character by the character ' and in the same time, I have to change ' by '' (i.e. the character ' twice and not the unique character ) when the character

[R] regular expression

2007-04-06 Thread Laurent Rhelp
Dear R-List, I have a great many files in a directory and I would like to replace in every file the character by the character ' and in the same time, I have to change ' by '' (i.e. the character ' twice and not the unique character ) when the character ' is embodied in . So, .

Re: [R] regular expression

2007-04-06 Thread Laurent Rhelp
Uwe Ligges a écrit : Laurent Rhelp wrote: Dear R-List, I have a great many files in a directory and I would like to replace in every file the character by the character ' and in the same time, I have to change ' by '' (i.e. the character ' twice and not the unique character

Re: [R] odfWeave and figures in MS Word Format

2007-01-09 Thread Laurent Rhelp
and you won't be able to see the images. Rtf worked because the images are embedded into the rtf file. odt - doc works just fine with images, so that would be a better idea. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Rhelp Sent: Monday

[R] odfWeave and figures in MS Word Format

2007-01-08 Thread Laurent Rhelp
I answer to myself. I understood my error : first of all, we have to save the file in the .rtf format ! Then, from the rtf file, we can generate the file in the .doc format. I am sorry for my question. Thanks Laurent __ R-help@stat.math.ethz.ch

[R] odfWeave and figures in MS Word Format

2007-01-07 Thread Laurent Rhelp
Dear R-List, I try to use the package odfWeave but I missed something. I use the command odfWeave(examples.odt,out.odt) to generate the file that I can open with OpenOffice : it works fine. Then, I used the Save As to export the document to HTML format : it works fine and creates the .png

[R] sweave2html only for Linux users ?

2006-10-02 Thread Laurent Rhelp
Dear R-List, I would like to convert my rnw files written with Sweave from LaTeX to html. I discovered on the list the following link : http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/SweaveConvert Is this document only for linux users or I can use it with windose XP ? Thanks

Re: [R] lattice and several groups

2006-09-03 Thread Laurent Rhelp
= TRUE, vp = viewport(.9, .9)) draw.key(key2, draw = TRUE, vp = viewport(.75, .9)) On 8/30/06, Laurent Rhelp [EMAIL PROTECTED] wrote: Gabor Grothendieck a écrit : Note that before entering this you need: library(lattice) library(grid) # to access the viewport function

Re: [R] lattice and several groups

2006-09-03 Thread Laurent Rhelp
$f2)), lines = list(col = my.col) ) draw.key(key1, draw = TRUE, vp = viewport(.9, .9)) draw.key(key2, draw = TRUE, vp = viewport(.75, .9)) On 9/3/06, Laurent Rhelp [EMAIL PROTECTED] wrote: Gabor Grothendieck a écrit : In thinking about this a bit more we can use panel.superpose

Re: [R] lattice and several groups

2006-08-30 Thread Laurent Rhelp
hadley wickham a écrit : I would like to use the lattice library to show several groups on the same graph. Here's my example : ## the data f1 - factor(c(mod1,mod2,mod3),levels=c(mod1,mod2,mod3)) f1 - rep(f1,3) f2 - factor(rep(c(g1,g2,g3),each=3),levels=c(g1,g2,g3)) df -

Re: [R] lattice and several groups

2006-08-30 Thread Laurent Rhelp
= list(levels(df$f2)), points = list(pch = 20, col = 1:nlevels(df$f2)) ) trellis.focus(panel, 1, 1) draw.key(key1, draw = TRUE, vp = viewport(.9, .9)) draw.key(key2, draw = TRUE, vp = viewport(.75, .9)) trellis.unfocus() On 8/29/06, Laurent Rhelp [EMAIL PROTECTED] wrote: Dear R-list

Re: [R] lattice and several groups

2006-08-30 Thread Laurent Rhelp
, vp = viewport(.9, .9)) draw.key(key2, draw = TRUE, vp = viewport(.75, .9)) trellis.unfocus() On 8/29/06, Laurent Rhelp [EMAIL PROTECTED] wrote: Dear R-list, I would like to use the lattice library to show several groups on the same graph. Here's my example : ## the data f1 - factor(c

[R] lattice and several groups

2006-08-29 Thread Laurent Rhelp
Dear R-list, I would like to use the lattice library to show several groups on the same graph. Here's my example : ## the data f1 - factor(c(mod1,mod2,mod3),levels=c(mod1,mod2,mod3)) f1 - rep(f1,3) f2 - factor(rep(c(g1,g2,g3),each=3),levels=c(g1,g2,g3)) df -

Re: [R] Sweave and long strings

2006-03-06 Thread Laurent Rhelp
Roger Bivand a écrit : On Sun, 5 Mar 2006, Laurent Rhelp wrote: Dear R-List, I use Sweave (which is wonderful) and I have a problem with the strings when they are too long according to the width of the page. For example when I do in my .Rnw document : UsingRODBC,echo=TRUE= channel

[R] Sweave and long strings

2006-03-05 Thread Laurent Rhelp
Dear R-List, I use Sweave (which is wonderful) and I have a problem with the strings when they are too long according to the width of the page. For example when I do in my .Rnw document : UsingRODBC,echo=TRUE= channel - odbcConnect(dsn=database,uid=root,pwd=password) df1 -