Martin Maechler wrote:
>If you specify max$all as "100%", i.e, as 0. ('< 1' !) everything works
>as you expect it:
>
>agrep(pattern, subject, max = list(ins=0, del=0, sub= 2, all = 0.))
>## --> 2 3 4
>
>
OK I got it! Thanks for the explanation.
Cheers,
Hervé
--
-
> "Herve" == Herve Pages <[EMAIL PROTECTED]>
> on Wed, 04 Jan 2006 17:29:35 -0800 writes:
Herve> Happy new year everybody,
Herve> I'm getting the following while trying to use the agrep() function:
>> pattern <- "XXX"
>> subject <- c("oo", "oooXooo", "oooXXooo", "o
Happy new year everybody,
I'm getting the following while trying to use the agrep() function:
> pattern <- "XXX"
> subject <- c("oo", "oooXooo", "oooXXooo", "oooXXXooo")
> max <- list(ins=0, del=0, sub=0) # I want exact matches only
> agrep(pattern, subject, max=max)
[1] 4
OK
> max$su