Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
Thanks for the clarification. - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , "Jeff Newmiller" Cc: r-help@r-project.org Sent: Thursday, January 10, 2019 11:43:14 AM Subject: Re: [R] Diff'ing 2 strings On 10/01/2019 11:38 a.m.

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Bert Gunter
;, "Martin Møller Skarbiniks Pedersen" < > traxpla...@gmail.com> > Cc: "R mailing list" > Sent: Thursday, January 10, 2019 10:49:15 AM > Subject: Re: [R] Diff'ing 2 strings > > Just type > > ?Rdiff > > it is in the preinstalled packages that co

Re: [R] Diff'ing 2 strings

2019-01-10 Thread William Dunlap via R-help
ST, Sebastien Bihorel < > sebastien.biho...@cognigencorp.com> wrote: > >From which the diffobj package? > > > > > >From: "Martin Møller Skarbiniks Pedersen" > >To: "Sebastien Bihorel" > >Cc: "R mailing list" >

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Duncan Murdoch
t.org, "Sebastien Bihorel" , "Martin Møller Skarbiniks Pedersen" Cc: "R mailing list" Sent: Thursday, January 10, 2019 10:49:15 AM Subject: Re: [R] Diff'ing 2 strings Just type ?Rdiff it is in the preinstalled packages that come with R. On January 10, 2019 7:35:

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
org, "Sebastien Bihorel" , "Martin Møller Skarbiniks Pedersen" Cc: "R mailing list" Sent: Thursday, January 10, 2019 10:49:15 AM Subject: Re: [R] Diff'ing 2 strings Just type ?Rdiff it is in the preinstalled packages that come with R. On January 10, 201

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Jeff Newmiller
mailing list" >Sent: Thursday, January 10, 2019 2:35:15 AM >Subject: Re: [R] Diff'ing 2 strings > > > >On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ >mailto:sebastien.biho...@cognigencorp.com | >sebastien.biho...@cognigencorp.com ] wrote: > > &g

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
>From which the diffobj package? From: "Martin Møller Skarbiniks Pedersen" To: "Sebastien Bihorel" Cc: "R mailing list" Sent: Thursday, January 10, 2019 2:35:15 AM Subject: Re: [R] Diff'ing 2 strings On Sat, Jan 5, 2019, 14:58 Sebast

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Martin Møller Skarbiniks Pedersen
On Thu, 10 Jan 2019 at 09:23, Gerrit Eichner < gerrit.eich...@math.uni-giessen.de> wrote: > Don't you mean ?Rdiff ? > > Oh yes. The unix/linux command diff uses the rdiff-algorithme and it seems that Rdiff in R uses the exactly same algorithme. Regards Martin [[alternative HTML version d

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Troels Ring
?Rdiff perhaps?? Troels -Oprindelig meddelelse- Fra: R-help På vegne af Martin Møller Skarbiniks Pedersen Sendt: 10. januar 2019 08:35 Til: Sebastien Bihorel Cc: R mailing list Emne: Re: [R] Diff'ing 2 strings On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < sebast

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Gerrit Eichner
Don't you mean ?Rdiff ? Hth -- Gerrit - Dr. Gerrit Eichner Mathematical Institute, Room 212 gerrit.eich...@math.uni-giessen.de Justus-Liebig-University Giessen Tel: +49-(0)641-99-32104 Arndtstr. 2

Re: [R] Diff'ing 2 strings

2019-01-09 Thread Martin Møller Skarbiniks Pedersen
On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < sebastien.biho...@cognigencorp.com wrote: > Hi, > > Does R include an equivalent of the linux diff command? > yes. ?rdiff /martin [[alternative HTML version deleted]] __ R-help@r-project.org mail

Re: [R] Diff'ing 2 strings

2019-01-09 Thread Sebastien Bihorel
t: Saturday, January 5, 2019 10:19:42 AM Subject: Re: [R] Diff'ing 2 strings I do not know what you mean in your string context, as diff in Linux finds lines in files that differ. A reproducible example -- posting guide! -- would be most useful here. However, maybe something of the foll

Re: [R] Diff'ing 2 strings

2019-01-05 Thread Bert Gunter
It's the "split" string not the "sep" string, as you and probably everyone else already realizes. And, of course, it could be a regular expression, not literally a character string. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things int

Re: [R] Diff'ing 2 strings

2019-01-05 Thread Bert Gunter
I do not know what you mean in your string context, as diff in Linux finds lines in files that differ. A reproducible example -- posting guide! -- would be most useful here. However, maybe something of the following strategy might be useful: 1. Break up your strings into lists of string "chunks"