t;> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
>> project.org] On Behalf Of Gabor Grothendieck
>> Sent: Tuesday, June 09, 2009 11:27 AM
>> To: Greg Snow
>> Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann
>> Subject: Re: [R] using
ehalf Of Gabor Grothendieck
>> Sent: Tuesday, June 09, 2009 11:27 AM
>> To: Greg Snow
>> Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann
>> Subject: Re: [R] using regular expressions to retrieve a digit-digit-
>> dot structure from a string
>>
>> Wacek al
On Behalf Of Gabor Grothendieck
> Sent: Tuesday, June 09, 2009 11:27 AM
> To: Greg Snow
> Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann
> Subject: Re: [R] using regular expressions to retrieve a digit-digit-
> dot structure from a string
>
> Wacek already mentioned
un...@r-project.org [mailto:r-help-boun...@r-
>> project.org] On Behalf Of Wacek Kusnierczyk
>> Sent: Tuesday, June 09, 2009 1:05 AM
>> To: Gabor Grothendieck
>> Cc: r-help@r-project.org; Mark Heckmann
>> Subject: Re: [R] using regular expressions to retrieve a di
On Tue, Jun 9, 2009 at 7:44 AM, Mark Heckmann wrote:
> Thanks for your help. Your answers solved the problem I posted and that is
> just when I noticed that I misspecified the problem ;)
> My problem is to separate a German texts by sentences. Unfortunately I
> haven't found an R package doing th
Mark Heckmann
> Subject: Re: [R] using regular expressions to retrieve a digit-digit-
> dot structure from a string
>
> Gabor Grothendieck wrote:
> > On Mon, Jun 8, 2009 at 7:18 PM, Wacek
> > Kusnierczyk wrote:
> >
> >> Gabor Grothendieck wrote:
> >>
>
wartz [mailto:marc_schwa...@me.com]
> Gesendet: Dienstag, 9. Juni 2009 14:17
> An: Mark Heckmann
> Cc: r-help@r-project.org; 'Gabor Grothendieck';
> waclaw.marcin.kusnierc...@idi.ntnu.no
> Betreff: Re: AW: [R] using regular expressions to retrieve a digit-digit-dot
> struct
21 - 1614618
www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
-Ursprüngliche Nachricht-
Von: Gabor Grothendieck [mailto:ggrothendi...@gmail.com]
Gesendet: Dienstag, 9. Juni 2009 12:48
An: Wacek Kusnierczyk
Cc: Mark Heckmann; r-help@r-project.org
Betreff: Re: [R] using regular ex
-
Von: Marc Schwartz [mailto:marc_schwa...@me.com]
Gesendet: Dienstag, 9. Juni 2009 14:17
An: Mark Heckmann
Cc: r-help@r-project.org; 'Gabor Grothendieck';
waclaw.marcin.kusnierc...@idi.ntnu.no
Betreff: Re: AW: [R] using regular expressions to retrieve a digit-digit-dot
structure from a
On Jun 9, 2009, at 6:44 AM, Mark Heckmann wrote:
Hey all,
Thanks for your help. Your answers solved the problem I posted and
that is
just when I noticed that I misspecified the problem ;)
My problem is to separate a German texts by sentences. Unfortunately I
haven't found an R package doing
Gabor Grothendieck wrote:
> On Tue, Jun 9, 2009 at 3:04 AM, Wacek
> Kusnierczyk wrote:
>
>> Gabor Grothendieck wrote:
>>
>>> On Mon, Jun 8, 2009 at 7:18 PM, Wacek
>>> Kusnierczyk wrote:
>>>
>>>
Gabor Grothendieck wrote:
> Try this. See ?regex for more.
>>
On Tue, Jun 9, 2009 at 3:04 AM, Wacek
Kusnierczyk wrote:
> Gabor Grothendieck wrote:
>> On Mon, Jun 8, 2009 at 7:18 PM, Wacek
>> Kusnierczyk wrote:
>>
>>> Gabor Grothendieck wrote:
>>>
Try this. See ?regex for more.
> x <- 'This happened in the 21. century." (the dot behind
Gabor Grothendieck wrote:
> On Mon, Jun 8, 2009 at 7:18 PM, Wacek
> Kusnierczyk wrote:
>
>> Gabor Grothendieck wrote:
>>
>>> Try this. See ?regex for more.
>>>
>>>
>>>
x <- 'This happened in the 21. century." (the dot behind 21 is'
regexpr("(?![0-9]+)[.]", x, perl = TRUE)
On Mon, Jun 8, 2009 at 7:18 PM, Wacek
Kusnierczyk wrote:
> Gabor Grothendieck wrote:
>> Try this. See ?regex for more.
>>
>>
>>> x <- 'This happened in the 21. century." (the dot behind 21 is'
>>> regexpr("(?![0-9]+)[.]", x, perl = TRUE)
>>>
>> [1] 24
>> attr(,"match.length")
>> [1] 1
>>
>
> yes,
Gabor Grothendieck wrote:
> Try this. See ?regex for more.
>
>
>> x <- 'This happened in the 21. century." (the dot behind 21 is'
>> regexpr("(?![0-9]+)[.]", x, perl = TRUE)
>>
> [1] 24
> attr(,"match.length")
> [1] 1
>
yes, but
gregexpr('(?![0-9]+)[.]', 'a. 1. a1.', perl=TRUE)
On Jun 8, 2009, at 12:34 PM, Marc Schwartz wrote:
On Jun 8, 2009, at 9:15 AM, Mark Heckmann wrote:
Hi,
i need to recognize itemization structures in strings which follow
the
format: "digit-digit-dot" like e.g.
1.
2.
19.
211.
Given the string " This happened in the 21. century."
Try this. See ?regex for more.
> x <- 'This happened in the 21. century." (the dot behind 21 is'
> regexpr("(?![0-9]+)[.]", x, perl = TRUE)
[1] 24
attr(,"match.length")
[1] 1
On Mon, Jun 8, 2009 at 10:15 AM, Mark Heckmann wrote:
> Hi,
>
>
>
> i need to recognize itemization structures in string
On Jun 8, 2009, at 9:15 AM, Mark Heckmann wrote:
Hi,
i need to recognize itemization structures in strings which follow the
format: "digit-digit-dot" like e.g.
1.
2.
19.
211.
Given the string " This happened in the 21. century." (the dot
behind 21 is
used in German instead of 21st
Try this:
x <- "This happened in the 21. century."
gregexpr("[[:digit:]]\\.", x)
This returns the position of the digit-dot in the string.
On Mon, Jun 8, 2009 at 11:15 AM, Mark Heckmann wrote:
> Hi,
>
>
>
> i need to recognize itemization structures in strings which follow the
> format: "digit
Hi,
i need to recognize itemization structures in strings which follow the
format: "digit-digit-dot" like e.g.
1.
2.
19.
211.
Given the string " This happened in the 21. century." (the dot behind 21 is
used in German instead of 21st) I want know where the dots are but I do not
want t
20 matches
Mail list logo